地质所 沉降监测网建设项目
zmk
2024-07-03 41750848c6cc6506fa107036d04b28c0f28cfba8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# 项目相关配置
javaweb:
  # 名称
  name: JavaWeb
  # 版本
  version: 4.1.0
  # 版权年份
  copyrightYear: 2022
  # 实例演示开关
  demoEnabled: false
  # 文件路径 示例
  profile: D:\ChenjiangWeb\uploads
  # 获取ip地址开关
  addressEnabled: false
  #虚拟文件上传路径
  upload-path: D:\dkyWeb\
  host: 127.0.0.1:7000
  
# 开发环境配置
server:
  # 服务器的HTTP端口,默认为80
  port: 7000
  servlet:
    # 应用的访问路径
    context-path: /bjfw
  tomcat:
    # tomcat的URI编码
    uri-encoding: UTF-8
    # tomcat最大线程数,默认为200
    max-threads: 800 
    # Tomcat启动初始化的线程数,默认值25
    min-spare-threads: 30
  #ssl:
    #key-store: classpath:7508894_gongchengkancha.com.pfx
    #key-store-password: yLCyiCd0
    #key-store-type: PKCS12
  max-http-header-size: 102400
  connection-timeout: 3000
 
# 日志配置
logging:
  level:
    com.javaweb: debug
    org.springframework: warn
 
# 用户配置
user:
  password:
    # 密码错误{maxRetryCount}次锁定10分钟
    maxRetryCount: 5
 
# Spring配置
spring:
  # 模板引擎
  thymeleaf:
    mode: HTML
    encoding: utf-8
    # 禁用缓存
    cache: false
  # 资源信息
  messages:
    # 国际化资源文件路径
    basename: static/i18n/messages
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  profiles: 
    active: druid
  # 文件上传
  servlet:
     multipart:
       # 单个文件大小
       max-file-size:  3000MB
       # 设置总上传的文件大小
       max-request-size:  3000MB
  # 服务模块
  devtools:
    restart:
      # 热部署开关
      enabled: true
    
# MyBatis
mybatis:
    # 搜索指定包别名
    typeAliasesPackage: com.javaweb.**.domain
    # 配置mapper的扫描,找到所有的mapper.xml映射文件
    mapperLocations: classpath*:mapper/**/*Mapper.xml
    # 加载全局的配置文件
    configLocation: classpath:mybatis/mybatis-config.xml
 
# PageHelper分页插件
pagehelper: 
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql 
 
# Shiro
shiro:
  user:
    # 登录地址
    loginUrl: /login
    # 权限认证失败地址
    unauthorizedUrl: /unauth
    # 首页地址
    indexUrl: /index
    # 验证码开关
    captchaEnabled: false
    # 验证码类型 math 数组计算 char 字符
    captchaType: char
  cookie:
    # 设置Cookie的域名 默认空,即当前访问的域名
    domain: 
    # 设置cookie的有效访问路径
    path: /
    # 设置HttpOnly属性
    httpOnly: true
    # 设置Cookie的过期时间,天为单位
    maxAge: 30
  session:
    # Session超时时间,-1代表永不过期(默认30分钟)
    expireTime: -1
    # 同步session到数据库的周期(默认1分钟)
    dbSyncPeriod: 1
    # 相隔多久检查一次session的有效性,默认就是10分钟
    validationInterval: 10
    # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
    maxSession: -1
    # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
    kickoutAfter: false
 
# 防止XSS攻击
xss: 
  # 过滤开关
  enabled: true
  # 排除链接(多个用逗号分隔)
  excludes: /system/notice/*
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
 
ip:
    # 黑名单开关
    enabled: false
    # 排除链接(多个用逗号分隔)
    excludes: /favicon.ico*,/ruoyi.png*,/css/**,/docs/**,/fonts/**,/img/**,/ajax/**,/js/**,/ruoyi/**,/druid/**,/captcha/captchaImage**,/profile/upload/**,/profile/material/**,/images/**,/loginPage/**,/logout,/login
    # 匹配链接
    urlPatterns: /*
    #黑名单ip(多个用逗号分隔)
    list: