mysql连接数据库报错Unable to create initial connections of pool.

出现Unable to create initial connections of pool. 错误的原因是pom文件配置的mysql版本号的问题

找到并修改POM文件中的版本号

		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.44</version>
		</dependency>

如上图所示,把version中的版本号改到5.1.44以上即可(5.1.44也可以)

猜你喜欢

转载自blog.csdn.net/qq_29373285/article/details/85484075