这个我也懂啊,可是我用 spring 肯定要这个配置吧 org.springframework.web.context.ContextLoaderListener 用 spring security 肯定要这个配置吧@EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter {}