Spring data jpa- No bean named 'entityManagerFactory' is defined; Injection of autowired dependencies failed

前端 未结 8 1343
鱼传尺愫
鱼传尺愫 2020-11-27 15:19

I\'m developing application using spring data jpa,hibernate,mysql,tomcat7,maven and it\'s create error.I\'m trying to figure it out but i failed.

error are Cannot

8条回答
  •  孤街浪徒
    2020-11-27 15:36

    Had this issue when migrated spring boot 1.5.2 to 2.0.4. Instead of creating bean I've used @EnableAutoConfiguration in the main class and it solved my problem.

提交回复
热议问题