报错信息
'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
原因数据库没有配置,在启动的文件的注解@SpringBootApplication中加入参数
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})最后成功解决错误,因为新项目刚刚搭建,还没有连接数据库。
报错信息
'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
原因数据库没有配置,在启动的文件的注解@SpringBootApplication中加入参数
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})最后成功解决错误,因为新项目刚刚搭建,还没有连接数据库。