請教以下報錯解決方案 (網上有很多方案但不適用):
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError
移除pom "
org.jadira.usertype
usertype.core
4.0.0.GA
"
問題解決。
有人知道爲什麽嗎?
BeanCreationException
这种错误肯定是spring的配置、包/类的名字,编译问题等,但是具体到每个程序都不同。你要充分检查,可以去掉最近添加的代码,直到通过,再添加,确定问题所在。
单单看一个错误提示就知道你具体错在哪里肯定不可能。
mysql驱动的版本太高,hibernate版本不兼容