
Consider defining a bean of type ‘org.springframework.security.config.annotation.ObjectPostProcessor
报错信: 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)👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type ‘org.springframework.security.config.annotation.ObjectPostProcessor》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686554832a290617.html。