springboot启动报错:Cannot determine embedded database driver class for database type NONE

springboot启动报错如下:

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默认会启动一个嵌入的数据库驱动,但是需要配置,我的项目中不需要用到数据库,所以需要跳过数据库检查

在application类上添加

@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})

即可

posted @ 2019-05-31 14:00  一天到晚想名字  阅读(2339)  评论(0编辑  收藏  举报