spring security和mysql的结合使用

来源:互联网 发布:jquery json map 遍历 编辑:程序博客网 时间:2024/05/16 06:43

http://www.mkyong.com/spring-security/spring-security-form-login-using-database/

jdbc-user-service参照下面方法写,别用上面文章的

<jdbc-user-service id="userService"
       data-source-ref="dataSource"
       users-by-username-query=
          "select username, password, true from spitter where username=?"
       authorities-by-username-query=
          "select username,'ROLE_SPITTER' from spitter where username=?" />


原创粉丝点击