I'm developing an application with Spring Boot and Spring Security by starting the Application class in Eclipse with an embedded Tomcat. Every time I restart the server, my session disappears and I have to log in again which becomes quite annoying.
Is it possible to persist the sessions between server restarts?
I saw this other question on Stackoverflow where someone asks the opposite, which makes me think that this should actually work out-of-the-box:
How to disable Tomact session persistence in Spring Boot via Manager pathname?
I'm running Spring Boot 1.2.1 with Gradle.
btw, I know about Spring Loaded, but sometimes a server restart is unavoidable.