Home > Back-end >  Springboot nginx movement after the separation in the front page in thymeleaf can't get the ses
Springboot nginx movement after the separation in the front page in thymeleaf can't get the ses

Time:10-01

Turn the bosses, small white one, oneself do a springboot + nginx + vue. Js small projects, with the movement of separation, new HTML page can be normal use in eclipse thymeleaf get the value of the session, but in the front page with thymeleaf session values but a blank page, excuse me this how to solve

CodePudding user response:

Asked on the point code, this is too abstract, plus the static page you can get the value of the session?

CodePudding user response:

Thymeleaf not before and after the separation technology, similar to the JSP

CodePudding user response:

Before and after the end of the separation is unable to retrieve the value of the session, the service is not the same.
There are two solutions,
1. The nginx end under a domain before packaging.
2. Redis store session
  • Related