SpringBoot 启动报错 Failed to auto-configure a DataSource:

启动报错

原因是因为添加了数据库的包,

解决办法1,删除pom.xml 里面的数据库依赖

解决办法2,在启动入口类上加

猜你喜欢

转载自blog.csdn.net/weixin_40951242/article/details/83620948