文章目录
- 小结
- 问题
- 解决
- 参考
小结
Spring Boot报错:没有配置数据源(url属性未设置),进行解决。
问题
Spring Boot报错:
解决
具体原因,项目调用FeignClient数据源,因此不需要配置数据源,在主应用里关闭数据源的设置。将注@SpringBootApplication
修改如下:
以上,问题解决。
参考
Spring Boot报错:没有配置数据源(url属性未设置),进行解决。
Spring Boot报错:
具体原因,项目调用FeignClient数据源,因此不需要配置数据源,在主应用里关闭数据源的设置。将注@SpringBootApplication
修改如下:
以上,问题解决。