请教关于spring security的一些问题
我刚开始学习security不是很熟悉,不过我发现了写问题 请教下各位:
1. 我使用的是自己定义的数据库结构,当我使用
<authentication-provider>
<password-encoder hash="md5" />
<jdbc-user-service data-source-ref="dataSource"/>
</authentication-provider>
进行加密时 页面登陆总是提示错误! 如下:
PreparedStatementCallback; bad SQL grammar [SELECT username,authority FROM authorities WHERE username = ?]; nested exception is java.sql.SQLException: 对象名 'authorities' 无效。;
我数据库没起到作用.
2. security随tomcat一起启动,我修改数据库中的权限等数据的时候必须要重启tomcat才起作用.有什么解决办法没啊?
声明下 我使用的是 spring 3.0+spring security 2.0