![](https://img-blog.csdnimg.cn/20200401225902780.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
springboot
课设中遇到的各种小bug。根据mooc来做的。(https://www.icourse163.org/course/CDPC-1206497812)
z_passion_more
码不停
展开
-
Failed to configure a DataSource: 'url' attribute is not specified and no embedd
Failed to configure a DataSource: ‘url’ attribute is not specified and no em无法配置DataSource:未指定’url’属性,也无法配置嵌入数据源可能是.properties文件中datasource的配置出现错误,例如:地址值,数据库驱动,用户名,密码。SpringBoot的最大一个好处就是自动配置:所以我们只是...原创 2020-04-01 22:44:32 · 10876 阅读 · 2 评论 -
用@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})后的影响
在用springboot链接数据库时出现下面错误Failed to configure a DataSource: 'url' attribute is not specified and no em在网上找各种资料之后,基本都会有这个方法:将@SpringBootApplacation改成@SpringBootApplication(exclude = {DataSourceAut...原创 2020-04-01 22:35:17 · 1487 阅读 · 1 评论