Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cann

 Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user '16572'@'localhost' 

出现上面的问题是由于连接池配置的问题,将连接池和配置文件对应起来就可以了。

jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/goods
jdbc.username=root
jdbc.password=123456

	
		
		
		
		
	

你可能感兴趣的:(错误处理方式)