Following the information available here: Spring Security session
Configuring the HttpSecurity object like
http .sessionManagement((sessionMan