Java-Based Spring Security Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
This article describes [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Java-based_Configuration|Java-based]] Spring Security configuration. | This article describes [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Java-based_Configuration|Java-based]] Spring Security configuration. | ||
=Configuration Class= | |||
<syntaxhighlight lang='java'> | |||
import org.springframework.context.annotation.Configuration; | |||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; | |||
@Configuration | |||
@EnableWebSecurity | |||
public class SecurityConfiguration extends WebSecurityConfigurerAdapter { | |||
} | |||
</syntaxhighlight> |
Revision as of 18:17, 21 October 2018
Internal
Overview
This article describes Java-based Spring Security configuration.
Configuration Class
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
@EnableWebSecurity
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
}