Springboot 运行时出现: 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
两个解决办法, 1)在SpringApplication class上添加注释@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})。
2)在application.properties中添加spring.datasource.url=jdbc:mysql://localhost/my_database。