【错误解决】SpringBoot启动错误
2017-11-16 15:34
387 查看
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2017-11-16 15:32:12.994 ERROR 2668 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
原因是:springboot启动时会自动注入数据源和配置jpa
解决:在@SpringBootApplication中排除其注入
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
//@SpringBootApplication @SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class}) public class CreditApplication { public static void main(String[] args) { SpringApplication.run(CreditApplication.class, args); } }
如上配置即可
相关文章推荐
- Spring Boot+Shiro+Redis(redisson)整合时,采用内嵌tomcat启动错误原因分析
- shiro+spring boot+mybatis启动循环引用问题解决思路和方案
- Spring boot 启动错误处理
- 【错误解决】SpringBoot邮件服务的一些错误及其解决方案
- maven项目启动报:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 错误解决方法-杜恩德
- Spring Boot+Shiro+Redis(redisson)整合时,采用内嵌tomcat启动错误原因分析
- Spring Boot解决项目启动时初始化资源的方法
- Spring boot 启动jsp访问404问题解决
- spring-boot启动debug信息中non-fatal error解决
- Spring Boot+Shiro+Redis(redisson)整合时,采用内嵌tomcat启动错误原因分析
- SpringBoot页面表单请求失败,错误400的解决办法
- 解决spring-boot启动中碰到的问题:Cannot determine embedded database driver class for database type NONE
- SpringBoot集成Swagger2实现Restful(类型转换错误解决办法)
- 解决SPRINGSOURCE TOOL SUITE启动内存错误
- Spring Boot+Shiro+Redis(redisson)整合时,采用内嵌tomcat启动错误原因分析
- 使用Spring Boot操作Hive JDBC时,启动时报出错误:NoSuchMethodError: org.eclipse.jetty.servlet.ServletMapping.setDef
- spring boot + spring security 启动错误 Looking for @ControllerAdvice
- 创建springbootdemo后运行报MongoSocketOpenException错误解决方法
- Spring Boot+Shiro+Redis(redisson)整合时,采用内嵌tomcat启动错误原因分析
- Spring Boot jar 启动错误“due to missing embeddedServletContainerFactory.bean”