Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
报错原因:
- 不使用数据库,却导入了jdbc依赖
- 在application.properties/或者application.yml文件中没有添加数据库配置信息.
- 自己粗心,把配置文件放错地方
解决方法:
- 把依赖去掉
2. 把配置文件加上
3.配置文件要放在resource下