Failed to determine a suitable driver class

springboot startup error

***************************
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

Error explanation
配置数据源失败:未指定“url”属性,无法配置嵌入的数据源。
原因:未能确定合适的驱动程序类

Error troubleshooting analysis

View startup log
 [ main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
 [ main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
 [ main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.32
Doubt: port 8080, 8181 configured in application.yml
server:
  port: 8181
Judgment: application.yml is not effective
Found the reason: the resources folder format is incorrect

Insert picture description here

Solution: Set the folder format Resources Root

Insert picture description here

Postscript: After searching for information on the Internet for a long time, I found that the problem could not be solved. Finally, it turned out that it was a problem with the format of the folder. I hope it can help you. This article is original. I hope everyone will like your support. Thank you.

Guess you like

Origin blog.csdn.net/u010318957/article/details/109310913