In Spring Security 3 with Java Config, you can use HttpSecurity.sessionManagement():
@Override
protected void configure(final HttpSecurity http) throws Exception {
http
.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS);
}
More Related Contents:
- Spring Boot Security CORS
- Handle spring security authentication exceptions with @ExceptionHandler
- How Spring Security Filter Chain works
- How to use OAuth2RestTemplate?
- How do I get the Session Object in Spring?
- How to pass an additional parameter with spring security login page
- Spring Boot CORS filter – CORS preflight channel did not succeed
- Spring Security redirect to previous page after successful login
- How can I have list of all users logged in (via spring security) my web application
- Spring Security exclude url patterns in security annotation configurartion
- Spring Security 3.2 CSRF support for multipart requests
- How to write a custom filter in spring security?
- Spring CSRF token does not work, when the request to be sent is a multipart request
- JSON Web Token (JWT) with Spring based SockJS / STOMP Web Socket
- can I include user information while issuing an access token?
- Spring Security configuration: HTTP 403 error
- Auto login after successful registration
- How to set up Spring Security SecurityContextHolder strategy?
- How do I remove the ROLE_ prefix from Spring Security with JavaConfig?
- How to get custom user info from OAuth2 authorization server /user endpoint
- getting exception: No bean named ‘springSecurityFilterChain’ is defined
- Spring Security and @Async (Authenticated Users mixed up)
- Spring Security: mapping OAuth2 claims with roles to secure Resource Server endpoints
- How to use multiple login pages one for admin and the other one for user
- Spring Security 3.2 CSRF disable for specific URLs
- How to use Spring AbstractRoutingDataSource with dynamic datasources?
- Spring Social Authentication Filter for Stateless REST Endpoints which use Facebook Token for authentication
- Spring Boot: How to specify the PasswordEncoder?
- Looking for a Simple Spring security example [closed]
- Is it possible to invalidate a spring security session?