Unable to identify authentication-provider user-service-ref in Spring Security

前端 未结 2 762
抹茶落季
抹茶落季 2021-01-25 21:12

I am implementing spring security in my project

In my DAO class I am defining the loadUserByUsername

my class is like

UserDAOImpl.java

@         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-25 21:46

    phew... got it working.

    Moved

    
    
        
    

    from dispatcher-servlet to application-context.xml

    @Service("userDAOImpl") annotation on class name

    Would anyone care to tell why it started working?

提交回复
热议问题