Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfig': Unsatisfied dependency expressed through method 'configure' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
手误233333
本文分析了Spring Security配置中出现的UnsatisfiedDependencyException异常,详细探讨了在配置webSecurityConfig时因未找到HttpSecurity Bean定义导致的问题,并提供了调试建议。
2657

被折叠的 条评论
为什么被折叠?



