使用 C3P0连接数据库奇怪的发现java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: Y

解决方案:

定义字符编码,并且不使用properties文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd">






class="com.mchange.v2.c3p0.ComboPooledDataSource">














你可能感兴趣的:(使用 C3P0连接数据库奇怪的发现java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: Y)