测试时发现,集成data-jpa后使用默认的数据源配置会报错,所以需要在配置文件中更改数据源的配置(按老师的配置即可),并且mysql的jar包不能低于5.1.45版本
2018-04-01
完全按照样例执行了报错,这太差劲了。
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource
2018-04-01
加入JPA和mysql的后报错Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/SystemException
2018-04-01