【错误解决】SpringBoot启动错误
来源:互联网 发布:床垫选择 知乎 编辑:程序博客网 时间:2024/05/16 18:27
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 NONEAction: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); }}
如上配置即可
阅读全文
0 0
- 【错误解决】SpringBoot启动错误
- Mysql启动错误解决
- matlab7 启动错误解决
- HBase启动错误解决
- PostgreSQL启动错误解决
- mysql启动错误解决
- 【错误解决】SpringBoot邮件服务的一些错误及其解决方案
- MySql5--启动 1067错误解决
- Oracle启动错误解决心得
- 启动workflow错误----FMC31050E解决
- Eclipse启动错误的解决
- Redis 启动警告错误解决
- Redis 启动警告错误解决
- Redis 启动警告错误解决
- weblogic 启动常见错误解决
- springboot启动,报jdbc连接池的错误
- 13.5 SpringBoot应用启动错误org.apache.catalina.LifecycleException
- springboot启动正常,但出现404错误,导致无法访问
- 第23章 向碧蓝的苍穹致敬——三维天空的构建
- 把spring-boot项目部署到tomcat容器中
- 自己写的原生js轮播图插件
- 纯css做的开关
- 数据库管理技术
- 【错误解决】SpringBoot启动错误
- Qt 背景图片设置以及QT Style Sheets
- 搜狗商业平台Java技术实践
- 四分五裂布局
- 如何用javac 和java 编译运行整个Java工程
- Android | fragment的版本
- linux安装mongodb
- PHPMailer模拟队列发送邮件
- 每日一练29