Cannot determine embedded database driver class for database type NONE

前提是你 提交于 2020-04-06 05:41:48

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

解决方法:

1. 说明你的数据库连接不上,看看有关数据库的配置是否加上。

认真检查配置文件。

2.添加数据-exclude={DataSourceAutoConfiguration.class}

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})

3. 去掉下面的引用

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!