国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - Shiro的Subject.login()是怎么知道我的用戶信息在哪張表里?
為情所困
為情所困 2017-05-27 17:40:56
0
2
805

shiro-jdbc-realm.ini

為情所困
為情所困

全部回復(fù)(2)
PHPzhong

shirojdbcRealm中有這么些默認(rèn)的query

   /**
     * The default query used to retrieve account data for the user.
     */
    protected static final String DEFAULT_AUTHENTICATION_QUERY = "select password from users where username = ?";
    
    /**
     * The default query used to retrieve account data for the user when {@link #saltStyle} is COLUMN.
     */
    protected static final String DEFAULT_SALTED_AUTHENTICATION_QUERY = "select password, password_salt from users where username = ?";

    /**
     * The default query used to retrieve the roles that apply to a user.
     */
    protected static final String DEFAULT_USER_ROLES_QUERY = "select role_name from user_roles where username = ?";

    /**
     * The default query used to retrieve permissions that apply to a particular role.
     */
    protected static final String DEFAULT_PERMISSIONS_QUERY = "select permission from roles_permissions where role_name = ?";

要不就是你數(shù)據(jù)庫的表就是上面這些表, 要不就是你自己指定了query

阿神

shiro是在你指定的realm中去做用戶名密碼校驗(yàn)功能的,這個(gè)校驗(yàn)還是要自己寫的

看這個(gè)http://jinnianshilongnian.ite...

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板