首先说明一下此方法不一定适用你的问题,但是解决我的问题,我之前在别人那里评论过这个方法,发现很多人都解决了,我就发一个简单的博客,供大家参考

一. 关于这个异常现象failed to configure a datasource: ‘url’ attribute is not specified and no em可能是你在刚刚配置完启动项目报的错,也可能是一直都是正常运行,突然就报了如下代码段的异常

***************************
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).
 
 
Process finished with exit code 1

网上有很多修改配置啊什么的,我没仔细研究,但是我在这边说一下就是在你修改配置之前:
重点!重点!重点!
碰到这个问题先别急着乱修改的,先尝试maven重新打包一下,然后刷新,重启,说不定就解决,如果没解决再尝试修改配置之类的操作。

Logo

一站式 AI 云服务平台

更多推荐