Код: Выделить всё
public UserResponse getUser(@RequestBody UserRequest request) {
...
HttpSession httpSession = httpRequest.getSession();
boolean isValid = (boolean) httpSession.getAttribute("isValid");
if (isValid) {
// send http request
...
}
...
}
Код: Выделить всё
"errorText":"Cannot invoke \"java.lang.Boolean.booleanValue()\" because the return value of \"jakarta.servlet.http.HttpSession.getAttribute(String)\" is null"
Подробнее здесь: https://stackoverflow.com/questions/785 ... ttpsession
Мобильная версия