亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

建好Girl類后啟動,報錯如下

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 org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]


正在回答

3 回答

解決了么,我也遇到這個問題了,不是評論中寫的包導錯了

0 回復 有任何疑惑可以回復我~

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 org.hibernate

你到底怎么解決的?

1 回復 有任何疑惑可以回復我~
#1

慕俠8169409

實體類包導錯了,@Id時,應該導入import javax.persistence.*; 而不是import org.springframework.data.annotation.Id;
2017-08-07 回復 有任何疑惑可以回復我~
#2

劍指天涯_mkw3678998 回復 慕俠8169409

還真的是這個原因,謝了
2017-08-10 回復 有任何疑惑可以回復我~
#3

慕后端6538015 回復 慕俠8169409

應該不是這個問題吧,我確實導入的這個包,還是這樣的錯誤
2017-10-07 回復 有任何疑惑可以回復我~

好了,配置里的username: root ? 寫成usernaname了

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
2小時學會Spring Boot
  • 參與學習       151526    人
  • 解答問題       1132    個

Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序

進入課程

建好Girl類后啟動,報錯如下

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號