这是我的上下文文件:
<security:authentication-manager id="authenticationManager">
<security:authentication-provider user-service-ref="userDao">
<security:password-encoder ref="passwordEncoder"></security:password-encoder>
</security:authentication-provider>
</security:authentication-manager>
<context:component-scan base-package="net.myrest.resources" />
我正在尝试将自动安装的身份验证管理器发送到myrest.resource.file
,但每次它都为null。
@Autowired
@Qualifier("authenticationManager")
private AuthenticationManager authManager;