springBoot中Security的使用 需要有自动装配 @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter {//链式编程@Overrideprotected void configure(HttpSecurity http)……