entityManagerFactory
来源:6-6 -持久化数据到H2
waferkasai
2017-12-20
***************************
APPLICATION FAILED TO START
***************************
Description:
Field userRepository in com.yyc.spring.boot.blog.controller.UserController required a bean named 'entityManagerFactory' that could not be found.
Action:
Consider defining a bean named 'entityManagerFactory' in your configuration.
写回答
2回答
-
厉害的乌废猫
2018-08-02
我也踩雷了,找出问题是添加主键注解@Id的时候导错包了,要用javax.peisistence.Id那个。
012018-08-02 -
老卫
2017-12-20
检查下 application.properties 中的配置
032017-12-20
基于Spring Boot技术栈博客系统企业级前后端实战
毕设 Elasticsearch搜索+Thymeleaf模板+JPA+Security+BootStrap
1296 学习 · 738 问题