the springboot project takes the session, and stuffs something into it.
Why is there nothing in the attribute in the session I get every time?
Code:
@ RestController
public class Controller {
public void a(HttpSession session) throws InterruptedException {
Object obj = session.getAttribute("asasa");
if (obj==null) {
session.setAttribute("asasa","121212");
}
}
}
it"s so depressing.