SpringBoot may report the following errors during startup:
Cannot determine embedded database driver class for database type NONE
Solution:
This is because spring boot will be loaded by default
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration this class
The DataSourceAutoConfiguration class uses the @Configuration annotation to inject the dataSource bean into spring. Because there is no configuration information related to dataSource in the project, when spring creates a dataSource bean, an error will be reported due to the lack of relevant information.
The solution is to:
Add on Application class
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})