我正在尝试在本地数据库中使用 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>>