1

我正在尝试在本地数据库中使用 CAS 服务器,但是我不断收到could not get jdbc connection nested exception错误消息。我按照以下方式设置了 deployerconfigcontext

 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="driverClassName">
        <value>com.mysql.jdbc.Driver</value>
    </property>
    <property name="url">
        <value>jdbc:mysql://127.0.0.1:3306/usermanagement</value>
    </property>
    <property name="username">
        <value>root</value>
    </property>
</bean>

我得到的完整错误是

Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory <Access denied for user 'root'@'localhost'<using password:NO>>
4

1 回答 1

1

添加root用户密码,解决问题

于 2013-06-10T19:14:39.183 回答