***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
遇到了一个这样的问题,微服务springCloud的项目需要升级jdk1.8到jdk17,springboot同样由2.3.2升级到3.1,因为以前是用的mybatis-plus 3.4.2,当mybatis-plus升级后,就一直报这个错误。经过排查,gateway网关是可以正常启动的,微服务service1,在以前低版本的时候也可以正常启动,目前感觉是mybatis-plus不兼容引起的问题,因为之前无论哪个服务,同样的nacos和本地配置都是可以正常启动服务的。但当我升级后,网关可正常启动,一给网关加上mysql-connector-j的依赖jar,马上也报错这个问题,有没有大佬帮忙解答一下
![[流泪]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_6.dde0d83.png)