@Autowired object gets a null value in one class, while successfully wired in another

前端 未结 5 1105
小鲜肉
小鲜肉 2021-02-19 01:32

I am working on a project using Spring 3, and Spring Security. My problem is with IoC container. Problem started when I wrote my own implementation of UserDetailsService

5条回答
  •  走了就别回头了
    2021-02-19 01:56

    I don't know why :( but removing the tag from project-security.xml and will work!

    http://forum.springsource.org/showthread.php?115561-Autowire-on-custom-authentication-provider-doesn-t-work

提交回复
热议问题