Failed to configure a DataSource: 'url' attribute is not specified and no....解决方法

其实这个问题很简单,说白了就是数据源导不对。刚开始的时候我老是对application.yml配置文件,我看了很久。天啊,一定没错啊。于是就百度呀,谷歌呀。发现很多博客大多都是几种答案。第一,application.yml的缩进问题导致这个报错,于是改进缩进就能够解决问题;有的是说。要在启动类上面指定数据源,即加上@SpringBootApplication(exclude= {DataSourc
相关文章
相关标签/搜索