admin管理员组文章数量:1293564
报错信息:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2020-05-15 00:05:12 ERROR [main]o.s.b.d.LoggingFailureAnalysisReporter [LoggingFailureAnalysisReporter.java : 40] -
APPLICATION FAILED TO START
Description:
A component required a bean of type ‘org.springframework.security.config.annotation.ObjectPostProcessor’ that could not be found.
Action:
Consider defining a bean of type ‘org.springframework.security.config.annotation.ObjectPostProcessor’ in your configuration.
解决:
启动类添加注解:
@EnableGlobalMethodSecurity(prePostEnabled = true)
本文标签: TypeorgdefiningBeanspringframework
版权声明:本文标题:Consider defining a bean of type ‘org.springframework.security.config.annotation.ObjectPostProcessor 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1738336667a2077046.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论