报错 com.mysql.cj.jdbc.Driver/com.mysql.jdbc.Driver

com.mysql.cj.jdbc.Driver/com.mysql.jdbc.Driver

If it is not a version issue, other answers have said to add a jar package to the jdk. In fact, mavern just quotes the mysql package. The csdn answers are all repeated

		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<scope>runtime</scope>
		</dependency>

Guess you like

Origin blog.csdn.net/qq_38230472/article/details/112801156