【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource

【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource_第1张图片
原因:配置文件中没有添加配置信息,但是引入了jdbc依赖
【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource_第2张图片
【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource_第3张图片
解决办法:启动类上添加注释exclude= DataSourceAutoConfiguration.class【日常BUG】Failed to configure a Datasource: ‘url‘ attribute is not specified and no embedded datasource_第4张图片
参考链接:
https://blog.csdn.net/qq_34322008/article/details/89954934

你可能感兴趣的:(日常bug记录,bug,mybatis,数据库)