I want to configure my servlet context, such as setting a custom jsessionId key (see Changing cookie JSESSIONID name)
I believe I can use the SpringBootServlet
SpringBootServlet
@Override protected void configure(HttpSecurity http) throws Exception { http .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.NEVER).and() .csrf().disable(); }
You can try this as it removes jsession id from URL