ClassCastException: org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

后端 未结 1 464
醉酒成梦
醉酒成梦 2020-12-16 20:11

I try to create simple user login and registration page. But I cannot create user using services method. I have a service for creating new user.

@Service
pub         


        
相关标签:
1条回答
  • 2020-12-16 20:29

    I added exclude = HibernateJpaAutoConfiguration.class property to @SpringBootApplication annotation as recomended at https://stackoverflow.com/a/38637273 and all worked normally. But I cannot relatrion problem and solution. And I don't not know why registerNewUserAccount(UserDto userDto) method works at one place and doesn't work at different place.

    0 讨论(0)
提交回复
热议问题