玩命哈密瓜

文章
6
资源
0
加入时间
4年1月24天

完美解决failed to configure a datasource: ‘url‘ attribute is not specified and no em

​导致failed to configure a datasource: 'url' attribute is not specified and no em,原因:项目新搭建的时候,引入了mybatis等框架,但是没有在yml等配置文件中配置链接,所以导致报错。解决:1.删掉mybatis等框架的引用,2.配置数据库再链接。如果是spring项目中把shop-web模块中的application.yml文件改成application.properties;对不同模块中的配置文件,以appli​