Spring boot&Mybatis 启动报错 Failed to auto-configure a DataSource

自己在练习springboot的时候 遇到启动错误 网上找解决办法,找到的

转-解决

他的提供的解决方法有两种,我用的第一种,成功了.

  @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})


然后再次启动即可

猜你喜欢

转载自blog.csdn.net/bwddd/article/details/80638378