Код: Выделить всё
@Service public class CommonServiceImpl implements CommonService {
HttpSession session=((HttpServletRequest)RequestContextHolder.getRequestAttributes()).getSession();
if (session != null) {
// Remove the success and error message attributes from the session
session.removeAttribute("succMsg");
session.removeAttribute("errorMsg");
}
}
Как избавиться от этой проблемы?
Подробнее здесь: https://stackoverflow.com/questions/787 ... -thymsleaf
Мобильная версия