出现错误:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource.
请注意是否配置mybatis的maven,如果配置了,在对应项目的yml文件需要写上数据库连接信息,如果不加载,在启动类添加注解
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
出现错误:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource.
请注意是否配置mybatis的maven,如果配置了,在对应项目的yml文件需要写上数据库连接信息,如果不加载,在启动类添加注解
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})