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项目时,出现了以上错误,
分析:该错误是缺少数据链接四要素,可能原因,真的没写四要素,写错,
这里分析,是因为,pom.xml文件引入了需要链接数据库的工程,导致缺少四要素报错,正确解决方案是删掉pom.xml的依赖,因为这个依赖是不需要的,而不是添加四要素,SpringCloud作为微服框架,我在web工程中引入了,数据库操作impl工程的依赖所以报错,正确使用是rpc远程调用,我使用的fegin客户端调用的
浏览到这里的朋友,不妨浏览一下该网站:klkj1999.top