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

前端 未结 2 763
抹茶落季
抹茶落季 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:38

    Typically beans that are component scanned are camel-cased starting with a lowercase character so the bean would exist in the application context as userDAOImpl (not UserDAOImpl)

    change your spring-security.xml snippet to

    
        
      
    
    

    Hope this works for you.

提交回复
热议问题