我正在尝试在我的本地数据库本地使用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>>
答案 0 :(得分:1)
为root用户添加了密码,解决了问题