Home > Back-end >  I ask, who knows in MyBatis blocker, how to obtain the HttpSession? I want to get a value of the ses
I ask, who knows in MyBatis blocker, how to obtain the HttpSession? I want to get a value of the ses

Time:12-01

I ask, who knows in MyBatis blocker, how to obtain the HttpSession? I want to get a value of the session in the interceptor,

CodePudding user response:

HttpSession session=((ServletRequestAttributes) RequestContextHolder getRequestAttributes ()). GetRequest () getSession ();

CodePudding user response:

This method can be used,
  • Related