錯(cuò)誤提示:
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.
?
意思為:
描述:
組件需要“org.springframework.security.configannotation”類(lèi)型的bean。找不到的ObjectPostProcessor“”。
行動(dòng):
考慮定義類(lèi)型為“org.springframework.security.configannotation”的bean。配置中的“ObjectPostProcessor”。
解決辦法:(注解)
@EnableGlobalMethodSecurity(prePostEnabled = true)
位置啟動(dòng)類(lèi)上方:
原因:
因?yàn)槭褂昧薙pringSecurity造成的文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-635892.html
?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-635892.html
到了這里,關(guān)于【錯(cuò)誤】A component required a bean of type ‘org.springframework.security.config.annotation.ObjectPostPr的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!