springboot启动 Cannot determine embedded database driver class for database type NONE
启动时去加载了数据库信息,但是application.yam文件中没有配置数据源信息
处理方式一:
排除两个默认配置
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
没起作用
处理方式二: 可行
去除pom文件数据库相关依赖 mysql、mybatis、等
<!-- Druid数据库连接池 --> <!--<dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.22</version> </dependency>--> <!-- Mysql --> <!--<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.48</version> </dependency>--> <!-- <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> </dependency>-->