auto-configure

Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded data

导入一个新的springboot maven项目启动一直报这个错,查出来的答案都说是加注解把数据库扫描给排除掉,这种方式其实有点鸵鸟,项目原先是没问题的,现在导入到自己的环境启动不起来,那肯定是不能去改动代码的。 排查了一遍,发现是项目中的resources文件没有指定成资源文件,所以找不到数据库的 ......
共1篇  :1/1页 首页上一页1下一页尾页