使用spring initializr创建maven项目, 在intellij idea中编译时报错: Error:(3, 29) java: 程序包org.junit.jupiter.api不存在
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
解决方法:创建springboot工程,springboot默认会加载数据库这样的属性信息,由于没有配置数据库的相关信息所以报错,如果没有配置数据库,就在启动类上加入这句@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })在运行就可以了