測試時發現,集成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