Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SEC-1948: Custom AbstractUserDetailsAuthenticationProvider Does not process annotations #2174
I have a custom class derived from AbstractUserDetailsAuthenticationProvider which needs to use a custom dao (UserDao). Within this provider I have an @Autowired UserDao field which does not get autowired. UserDao is successfully autowired into other beans in the same context (all beans reside within the root context).
The hack to get it to work is to manually inject the userDao via xml configuration. When that happens though, other annotations within UserDao (in this case @transactional) are also removed.
For more information see: http://stackoverflow.com/a/10036529/80286