@@ -33,10 +33,10 @@ spring:
3333spring :
3434 profiles :
3535 active : ' @profileActive@'
36- # ############################### spring config end ################################
36+ # ############################### spring config end #################################
3737
3838
39- # ############################# spring-boot-plus start #############################
39+ # ############################# spring-boot-plus start ##############################
4040spring-boot-plus :
4141 # jwt配置
4242 jwt :
@@ -45,30 +45,35 @@ spring-boot-plus:
4545 issuer : spring-boot-plus
4646 subject : spring-boot-plus-jwt
4747 audience : web
48- expire-minutes : 2
48+ # 默认过期时间30分钟,单位:秒
49+ expire-second : 1800
4950 # 拦截器配置
5051 interceptor-config :
51- jwt-config :
52- enabled : false
53- include-path : /**
54- exclude-path : /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/login,/verificationCode,/doc/**,/error/**,/docs,/test/**,/resource/**
5552 permission-config :
5653 enabled : false
57- include-path : /**
58- exclude-path : /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/adminLogin,/sysLogin,/login.html,/verificationCode,/doc/**,/error/**,/docs,/resource/**
59- token-timeout-config :
60- enabled : false
61- include-path : /**
62- exclude-path : /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/docs,/resource/**
54+ include-paths : /**
55+ exclude-paths : /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/adminLogin,/sysLogin,/login.html,/verificationCode,/doc/**,/error/**,/docs,/resource/**
6356 resource-config :
6457 enabled : true
65- include-path : ${spring-boot-plus.resource-access-patterns}
58+ include-paths : ${spring-boot-plus.resource-access-patterns}
6659 upload-config :
6760 enabled : true
68- include-path : /upload/**
61+ include-paths : /upload/**
6962 download-config :
7063 enabled : true
71- include-path : /download/**
64+ include-paths : /download/**
65+
66+ # 过滤器配置
67+ filter-config :
68+ # 请求路径Filter配置
69+ request-path-config :
70+ enabled : true
71+ include-paths : /**
72+ # 跨域Filter配置
73+ cross-domain-config :
74+ enabled : true
75+ include-paths : /**
76+
7277 # 文件上传下载配置
7378 # 上传路径配置
7479 upload-path : /opt/upload/
@@ -81,9 +86,38 @@ spring-boot-plus:
8186 # 全局允许上传的类型
8287 allow-upload-file-extensions : jpg,png,docx,xlsx,pptx,pdf
8388 allow-download-file-extensions : jpg,png,docx,xlsx,pptx,pdf
89+
90+ # Shiro配置
91+ shiro-config :
92+ # shiro ini 多行字符串配置
93+ filter-chain-definitions : |
94+ /=anon
95+ /static/**=anon
96+ /templates/**=anon
97+ # 权限配置
98+ permission-config :
99+ # 排除登陆相关
100+ - urls : /login,/login.html,/welcome.html,/index.html
101+ permission : anon
102+ # 排除Swagger
103+ - urls : /docs,/swagger-ui.html, /webjars/springfox-swagger-ui/**,/swagger-resources/**,/v2/api-docs
104+ permission : anon
105+ # 排除SpringBootAdmin
106+ - urls : /,/favicon.ico,/actuator/**,/instances/**,/assets/**,/sba-settings.js,/applications/**
107+ permission : anon
108+ # 测试
109+ - url : /sysUser/getPageList
110+ permission : anon
111+
84112# ############################## spring-boot-plus end ###############################
85113
86114
115+ # ############################# Spring Shiro start ##############################
116+
117+
118+ # ############################## Spring Shiro end ###############################
119+
120+
87121# ############################## mybatis-plus start #################################
88122mybatis-plus :
89123 check-config-location : true
0 commit comments