Created
October 3, 2016 11:09
-
-
Save anonymous/17015f5ddbd0c50132fd5a9d05843618 to your computer and use it in GitHub Desktop.
Spring Security configuration generated by http://www.glenware.com/spring-security-generator/ or https://github.com/farrelmr/spring-security-generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; | |
@EnableWebSecurity | |
public class SecurityConfig extends WebSecurityConfigurerAdapter { | |
@Autowired | |
public void configureGlobal(AuthenticationManagerBuilder auth) | |
throws Exception { | |
auth. | |
inMemoryAuthentication() | |
; | |
// YOU MUST SUPPLY USERNAMES AND ROLES | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment