我想使用Spring安全来验证我的web应用程序中的用户。 因为我不是Spring框架的成熟用户,所以我无法弄清楚我们如何配置设置以使用jdbc-user-服务.. 我做了configurations.but它不工作使用mysql数据库在Spring安全中验证用户身份?
<authentication-manager>
<authentication-provider>
<jdbc-user-service data-source-ref="myDataSource"/>
</authentication-provider>
</authentication-manager>
<beans:bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<beans:property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<beans:property name="url" value="jdbc:mysql://localhost:3306/testDB"/>
<beans:property name="username" value="admin"/>
<beans:property name="password" value="admin"/>
</beans:bean>
..can请人帮我一个样本配置文件来解决这个问题如下。 在此先感谢。
你的问题是什么?你可以发布堆栈跟踪,还是对你面临的任何问题有更清晰的描述? – beny23