Error creating bean with name 'org.springframework.security.filterChains' Spring + Hibernate + UserDetailService

后端 未结 3 777
有刺的猬
有刺的猬 2021-01-02 03:44

I just started to learn Spring Security and have some trouble. I want to configure User login on page with password and username which stored in database during registration

3条回答
  •  半阙折子戏
    2021-01-02 04:21

     
    

    replace this section with the following:

     
    

    Note:

    As a side note i see from the code and from comment i doubt you have injected SessionFactory from GuestBookDAOImpl, thats causes NPE upon method call on the DAO layer. Inject it either from xml config or annotations.

提交回复
热议问题