请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Error creating bean with name 'entityManagerFactory'

老师好!
我之前在10-5和10-6的环境运行都成功,但是在10-7里面编译成功但运行失败。可否麻烦您帮我看下可能是哪里的问题?错误信息如下:

2019-01-01 21:04:33.221 ERROR 14388 — [ main] o.s.boot.SpringApplication : Application startup failed

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.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]

正在回答 回答被采纳积分+3

1回答

提问者 慕函数7105585 2019-01-01 21:46:27

老师可以忽略此问题了。

谷歌了下,试了加下面这个dependency到POM文件就可以了

<dependency>
       <groupId>javax.xml.bind</groupId>
       <artifactId>jaxb-api</artifactId>
       <version>2.3.0</version></dependency>


1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号