spring_reference/IX. ‘How-to’ guides/71.1. Switch off the Spring...

5 lines
641 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 71.1. 关闭Spring Boot安全配置
不管你在应用的什么地方定义了一个使用`@EnableWebSecurity`注解的`@Configuration`它将会关闭Spring Boot中的默认webapp安全设置。想要调整默认值你可以尝试设置`security.*`属性(具体查看[SecurityProperties](http://github.com/spring-projects/spring-boot/tree/master/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java)和[常见应用属性](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#common-application-properties-security)的SECURITY章节