• 大小: 98KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-06
  • 语言: 其他
  • 标签: Spring  boot  

资源简介

Spring boot shiro

资源截图

代码片段和文件信息

package com.zlb.shiro;

import com.zlb.shiro.entity.Permission;
import com.zlb.shiro.entity.Role;
import com.zlb.shiro.entity.User;
import com.zlb.shiro.service.UserService;
import org.apache.shiro.authc.*;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

public class AuthRealm extends AuthorizingRealm {
    @Autowired
    private UserService userService;
    /**
     * 为用户授权
     * @param principals
     * @return
     */
    @Ove

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        268  2018-07-17 15:01  shiro\.gitignore

     文件        622  2018-07-17 15:02  shiro\.idea\compiler.xml

     文件        172  2018-07-17 15:02  shiro\.idea\encodings.xml

     文件        568  2018-07-17 15:06  shiro\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

     文件        547  2018-07-17 15:06  shiro\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

     文件        594  2018-07-17 15:06  shiro\.idea\libraries\Maven__commons_beanutils_commons_beanutils_1_8_3.xml

     文件        493  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_alibaba_druid_1_0_20.xml

     文件        522  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml

     文件        644  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml

     文件        595  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml

     文件        623  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml

     文件        674  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml

     文件        688  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml

     文件        729  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml

     文件        546  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml

     文件        700  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

     文件        503  2018-07-17 15:06  shiro\.idea\libraries\Maven__com_zaxxer_HikariCP_2_7_9.xml

     文件        611  2018-07-17 15:06  shiro\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xml

     文件        578  2018-07-17 15:06  shiro\.idea\libraries\Maven__javax_servlet_javax_servlet_api_3_1_0.xml

     文件        473  2018-07-17 15:06  shiro\.idea\libraries\Maven__javax_servlet_jstl_1_2.xml

     文件        611  2018-07-17 15:06  shiro\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xml

     文件        455  2018-07-17 15:06  shiro\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        574  2018-07-17 15:06  shiro\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_46.xml

     文件        536  2018-07-17 15:06  shiro\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_7_11.xml

     文件        578  2018-07-17 15:06  shiro\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml

     文件        542  2018-07-17 15:06  shiro\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xml

     文件        507  2018-07-17 15:06  shiro\.idea\libraries\Maven__net_minidev_json_smart_2_3.xml

     文件        556  2018-07-17 15:06  shiro\.idea\libraries\Maven__org_apache_commons_commons_lang3_3_4.xml

     文件        573  2018-07-17 15:06  shiro\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml

     文件        608  2018-07-17 15:06  shiro\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml

............此处省略132个文件信息

评论

共有 条评论