spring security和mysql的结合使用

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=?" />


你可能感兴趣的:(spring,mysql,Security)