- Add link to Spring Security's Global Method Security Java Configuration
- Fix link to SecurityProperties
- Add link to SECURITY Common application properties
- Remove unnecessary @Order from SecurityConfiguration
- Change method signature for @Autowired AuthenticationManagerBuilder to
compile / match Spring docs
@ -80,6 +80,7 @@ spring.thymeleaf.cache=true # set to false for hot refresh
@@ -80,6 +80,7 @@ spring.thymeleaf.cache=true # set to false for hot refresh
@ -1114,7 +1118,8 @@ If you define a `@Configuration` with `@EnableWebSecurity` anywhere in your appl
@@ -1114,7 +1118,8 @@ If you define a `@Configuration` with `@EnableWebSecurity` anywhere in your appl
it will switch off the default webapp security settings in Spring Boot. To tweak the
defaults try setting properties in `security.*` (see
@ -1132,12 +1137,12 @@ use this in a webapp is to inject it into a void method in a
@@ -1132,12 +1137,12 @@ use this in a webapp is to inject it into a void method in a
builder.inMemoryAuthentication().withUser("barry"); // ... etc.
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("barry").password("password").roles("USER"); // ... etc.
}
// ... other stuff for application security
@ -1145,9 +1150,6 @@ use this in a webapp is to inject it into a void method in a
@@ -1145,9 +1150,6 @@ use this in a webapp is to inject it into a void method in a
}
----
The configuration class that does this should declare an `@Order` so that it is used
before the default one in Spring Boot (which has very low precedence).