*************************** 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