ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed

简介: ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed

springboot数据库建表运行后报错:

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})


目录
相关文章
|
Java Maven Spring
|
3月前
|
C++ Windows
vs2019 This application failed to start because it could not find or load the QT platform plugin
这篇文章介绍了在VS2019中解决QT程序运行时出现的“无法找到或加载QT平台插件”错误的步骤,通过将必要的DLL文件和插件目录复制到项目解决方案中解决了问题。
|
5月前
|
缓存 Java Maven
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】
919 1
|
4月前
|
数据安全/隐私保护
部署初始化bug,刚开始部署出现的问题---ERROR o.s.b.SpringApplication - [reportFailure,870] - Application run failed
部署初始化bug,刚开始部署出现的问题---ERROR o.s.b.SpringApplication - [reportFailure,870] - Application run failed
|
6月前
|
Java 数据库连接 Spring
【SpringBoot】Error starting ApplicationContext. To display the conditions report re--run your app
【SpringBoot】Error starting ApplicationContext. To display the conditions report re--run your app
254 0
|
6月前
|
Java
springboot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your appl
springboot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your appl
485 0
|
Java Spring
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
41 1
Error starting ApplicationContext. To display the auto-configuration report re-run your application
Error starting ApplicationContext. To display the auto-configuration report re-run your application
|
Java
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
654 0
|
Java
SpringApplication#run()getRunListeners()
SpringApplication#run()getRunListeners()
67 0