springboot Cannot load driver class: com.mysql.jdbc.Driver
程序员文章站
2024-02-21 23:33:58
...
pom.xml中配置问题:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
改成:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
上一篇: NLP(十三)中文分词工具的使用尝试
下一篇: Error creating bean with name 'pictureServiceImpl': Injection of autowired dependencies failed;
推荐阅读
-
springboot Cannot load driver class: com.mysql.jdbc.Driver
-
错误 Cannot load driver class: com.mysql.jdbc.Driver
-
Cannot load driver class: com.mysql.jdbc.Driver
-
Cannot load driver class: com.mysql.jdbc.Driver
-
Cannot load driver class: com.mysql.jdbc.Driver
-
SpringBoot启动报错Failed to determine a suitable driver class
-
浅析使用JDBC操作MySQL需要添加Class.forName("com.mysql.jdbc.Driver")
-
【⭐】Java—Spring-—数据库操作—使用内置连接池,报读取不到驱动错误。Could not load JDBC driver class。
-
SpringBoot项目在启动时出现了Cannot determine embedded database driver class for database type NONE 错误
-
UI Automation - Chrome Driver Cannot Load Flash Plugin