javascript
ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed
springboot數(shù)據(jù)庫建表運(yùn)行后報(bào)錯:
ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: 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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not determine type for: java.util.List, at table: area_table, for columns: [org.hibernate.mapping.Column(son_area)]
解決方法是:
1.打開你的MainApplication.java
2.找到@SpringBootApplication
3.將其改為:
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
總結(jié)
以上是生活随笔為你收集整理的ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 动态规划思路和Python解决零钱兑换问
- 下一篇: java连接cdh集群_有一台电脑需要通