也许未在根应用程序上下文中启用自动装配后处理器(但在
DispatcherServlet的上下文中由于
<mvc:annotation-driven>或的影响而启用了
<context:component-scan>)。
您可以通过添加
<context:annotation-config>到中启用它
myApp-security.xml。

也许未在根应用程序上下文中启用自动装配后处理器(但在
DispatcherServlet的上下文中由于
<mvc:annotation-driven>或的影响而启用了
<context:component-scan>)。
您可以通过添加
<context:annotation-config>到中启用它
myApp-security.xml。
上一篇 如何在Spring中使用批注验证,并从属性文件中获取错误消息?
下一篇 无法使用KeycloakAutoConfiguration使用Spring Boot SecurityUnsatisfiedDependencyException设置Keycloak