*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
在启动类上添加注解,springboot在启动时会自动排出数据源启动项java
//springBoot启动时排除数据源启动项 @SpringBootApplication(exclude=DataSourceAutoConfiguration.class) public class SpringBootRun { public static void main(String[] args) { SpringApplication.run(SpringBootRun.class,args); } }
若是有其余方法,请评论区中探讨一下谢谢!!!spring