一、SpringBoot启动发生异常:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
二、原因
没有合适的驱动!
三、解决
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
再次启动运行测试:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
没有合适的驱动!
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
再次启动运行测试: