不连接数据库启动springboot会出现:Cannot determine embedded database driver class for database type NONE
已知两种方案:
1、
在@SpringBootApplication中排除其注入
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
2、pom.xml文件中,去除JPA的架包引用