application.yml 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. #======================================#
  2. #========== Project settings ==========#
  3. #======================================#
  4. # 产品或项目名称、软件开发公司名称
  5. productName: 610-MES生产管理系统
  6. companyName: 广东巨石新能源科技有限公司
  7. # 产品版本、版权年份
  8. productVersion: V1.0
  9. copyrightYear: 2026
  10. # 是否演示模式
  11. demoMode: false
  12. # 专为分离端提供接口服务
  13. apiMode: false
  14. #======================================#
  15. #========== Server settings ===========#
  16. #======================================#
  17. server:
  18. port: 8980
  19. servlet:
  20. context-path: /js
  21. register-default-servlet: false
  22. # encoding.enabled: true
  23. tomcat:
  24. uri-encoding: UTF-8
  25. # 表单请求数据的最大大小
  26. max-http-form-post-size: 20MB
  27. # # 进程的最大连接数
  28. # max-connections: 8192
  29. # # 连接数满后的排队个数
  30. # accept-count: 100
  31. # # 线程数最大和最小个数
  32. # threads:
  33. # max: 200
  34. # min-spare: 10
  35. # 当 Nginx 为 https,tomcat 为 http 时,设置该选项为 true
  36. schemeHttps: false
  37. #======================================#
  38. #========== Database sttings ==========#
  39. #======================================#
  40. # 数据库连接
  41. jdbc:
  42. # Mysql 数据库配置
  43. type: mysql
  44. driver: com.mysql.cj.jdbc.Driver
  45. url: jdbc:mysql://127.0.0.1:3306/mes_cloud_610?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
  46. # url: jdbc:mysql://192.168.113.99:3306/mes_cloud_610?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
  47. # username: mes_cloud_610
  48. # password: wrBrhmpBDxkATCLa
  49. # username: root
  50. # password: 123456
  51. username: mes_cloud
  52. password: RTCk7KxGPAPyy7pJ
  53. testSql: SELECT 1
  54. # # Oracle 数据库配置(若使用 12c,请修改 /modules/core/pom.xml 文件,打开 12c 依赖,去掉 11g 依赖)
  55. # type: oracle
  56. # driver: oracle.jdbc.OracleDriver
  57. # url: jdbc:oracle:thin:@127.0.0.1:1521/orcl
  58. # username: jeesite
  59. # password: jeesite
  60. # testSql: SELECT 1 FROM DUAL
  61. # # Sql Server 数据库配置(2008)
  62. # type: mssql
  63. # driver: net.sourceforge.jtds.jdbc.Driver
  64. # url: jdbc:jtds:sqlserver://127.0.0.1:1433/jeesite
  65. # username: jeesite
  66. # password: jeesite
  67. # testSql: SELECT 1
  68. # # Sql Server 数据库配置(2012以上版本)(请修改 /modules/core/pom.xml 文件,打开 SqlServer 2012 依赖)
  69. # type: mssql2012
  70. # driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
  71. # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=jeesite
  72. # username: jeesite
  73. # password: jeesite
  74. # testSql: SELECT 1
  75. # # PostgreSql 数据库配置
  76. # type: postgresql
  77. # driver: org.postgresql.Driver
  78. # url: jdbc:postgresql://127.0.0.1:5432/jeesite
  79. # username: jeesite
  80. # password: jeesite
  81. # testSql: SELECT 1
  82. # # H2 数据库配置(请修改 /modules/core/pom.xml 文件,打开 H2 DB 依赖)
  83. # type: h2
  84. # driver: org.h2.Driver
  85. # url: jdbc:h2:~/jeesite-db/jeesite
  86. # username: jeesite
  87. # password: jeesite
  88. # testSql: SELECT 1
  89. # 连接信息加密
  90. encrypt:
  91. # 加密连接用户名
  92. username: false
  93. # 加密连接密码
  94. password: true
  95. # 数据库连接池配置
  96. pool:
  97. # 初始化连接数
  98. init: 1
  99. # 最小空闲连接数
  100. minIdle: 5
  101. # 最大激活连接数
  102. maxActive: 80
  103. # # 获取连接等待超时时间,单位毫秒(1分钟)(4.0.6+)
  104. # maxWait: 60000
  105. #
  106. # # 从池中取出和归还连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个(4.0.6+)
  107. # testOnBorrow: false
  108. # testOnReturn: false
  109. #
  110. # # 间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒(1分钟)(4.0.6+)
  111. # timeBetweenEvictionRunsMillis: 60000
  112. #
  113. # # 一个连接在池中最小空闲的时间,单位毫秒(20分钟)(4.0.6+)
  114. # minEvictableIdleTimeMillis: 1200000
  115. # # 一个连接在池中最大空闲的时间,单位毫秒(30分钟)(4.1.2+)
  116. # maxEvictableIdleTimeMillis: 1800000
  117. #
  118. # # 连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作(4.1.8+)
  119. # keepAlive: false
  120. #
  121. # # 是否自动回收泄露的连接和超时时间,单位秒(35分钟)(4.0.6+)
  122. # removeAbandoned: false
  123. # removeAbandonedTimeout: 2100
  124. #
  125. # # Oracle 下会自动开启 PSCache,并指定每个连接上 PSCache 大小。若不指定,则与 maxActive 相同(4.1.5+)
  126. # maxPoolPreparedStatementPerConnectionSize: ~
  127. #
  128. # # 设置连接属性,可获取到表的 remark (备注)
  129. # remarksReporting: false
  130. # # 读写分离配置(专业版)v4.3.0
  131. # readwriteSplitting:
  132. # # 读库的数据源名称列表(默认数据源)
  133. # readDataSourceNames: ds_read_01, ds_read_02
  134. # # 负载均衡算法(ROUND_ROBIN轮询、RANDOM随机、自定义类名)
  135. # loadBalancerAlgorithm: RANDOM
  136. #
  137. # # 多数据源名称列表,多个用逗号隔开,使用方法:@MyBatisDao(dataSourceName="ds2")
  138. # dataSourceNames: ds_read_01, ds_read_02
  139. #
  140. # # 默认数据源的从库01
  141. # ds_read_01:
  142. # type: mysql
  143. # driver: com.mysql.cj.jdbc.Driver
  144. # url: jdbc:mysql://127.0.0.1:3306/jeesite_test?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
  145. # username: root
  146. # password: 123456
  147. # testSql: SELECT 1
  148. # pool:
  149. # init: 1
  150. # minIdle: 3
  151. # maxActive: 20
  152. #
  153. # # 默认数据源的从库02
  154. # ds_read_02:
  155. # type: mysql
  156. # driver: com.mysql.cj.jdbc.Driver
  157. # url: jdbc:mysql://127.0.0.1:3306/jeesite_test2?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
  158. # username: root
  159. # password: 123456
  160. # testSql: SELECT 1
  161. # pool:
  162. # init: 1
  163. # minIdle: 3
  164. # maxActive: 20
  165. # # 多数据源名称列表,多个用逗号隔开,使用方法:@MyBatisDao(dataSourceName="ds2")
  166. # dataSourceNames: ds2
  167. ##
  168. ## # 多数据源配置:ds2
  169. # ds2:
  170. # type: mysql
  171. # driver: com.mysql.cj.jdbc.Driver
  172. # url: jdbc:mysql://127.0.0.1:3306/oa?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
  173. # username: root
  174. # password: 123456
  175. # testSql: SELECT 1
  176. # # 其它数据源支持密码加密
  177. # encrypt:
  178. # username: false
  179. # password: true
  180. # # 其它数据源支持连接池设置
  181. # pool:
  182. # init: 1
  183. # minIdle: 3
  184. # maxActive: 20
  185. # # 其它数据源支持读写分离
  186. # readwriteSplitting:
  187. # readDataSourceNames: ~
  188. # loadBalancerAlgorithm: RANDOM
  189. # # 数据源映射(Dao类名 = 数据源名称),优先于 @MyBatisDao(dataSourceName="ds2") 设置 v4.3.0
  190. # # Dao类名,不仅支持某个具体 Dao类名,还支持 Dao 里的某个方法指定数据源名称,还支持包路径指定数据源等
  191. # # 数据源名指定 {empty} 时支持动态,相当于 @MyBatisDao(dataSourceName=DataSourceHolder.EMPTY)
  192. # # 数据源支持指定变量 {corpCode}、 {userCode}、{userCache中的Key名}、{yml或sys_config中的Key名}
  193. # # 从上到下,先匹配先受用规则,默认数据源名为 default 扩展数据源为 dataSourceNames 列表里自定义的名字
  194. # mybatisDaoAndDataSourceMappings: |
  195. # TestDataChildDao = ds2
  196. # EmpUserDao.findList = ds2
  197. # com.jeesite.modules.sys = default
  198. # com.jeesite.modules.filemanager = ds2
  199. # # JTA XA 事务(v4.0.4+)
  200. # jta:
  201. # enabled: false
  202. # 注意:如果报 oracle.jdbc.xa.OracleXAResource.recover 错误,则需要授权如下:
  203. # grant select on sys.dba_pending_transactions to jeesite;
  204. # grant select on sys.pending_trans$ to jeesite;
  205. # grant select on sys.dba_2pc_pending to jeesite;
  206. # grant execute on sys.dbms_system to jeesite;
  207. # # 事务超时时间,单位秒(30分钟)(v4.1.5+)
  208. # transactionTimeout: 1800
  209. #
  210. # # 表名和字段名(前缀|后缀)是否强制大写(v4.1.8+)
  211. # tableAndColumn:
  212. # prefixSuffix: "`|`"
  213. # forceUpperCase: true
  214. #
  215. # # 表名前缀
  216. # tablePrefix: js_
  217. #======================================#
  218. #========== Spring settings ===========#
  219. #======================================#
  220. spring:
  221. # 应用程序名称
  222. application:
  223. name: jeesite-web
  224. # 环境名称(注意:不可设置为 test 它是单元测试专用的名称)
  225. profiles:
  226. active: default
  227. # 打印横幅
  228. main:
  229. bannerMode: "off"
  230. # MVC 映射匹配策略
  231. mvc:
  232. pathmatch:
  233. matching-strategy: ANT_PATH_MATCHER
  234. # # Redis 连接参数 (RedisProperties)
  235. # redis:
  236. # host: 127.0.0.1
  237. # port: 6379
  238. # ssl: false
  239. # database: 0
  240. # password: 1234
  241. # timeout: 20000
  242. # lettuce:
  243. # pool:
  244. # # 最大空闲连接数
  245. # maxIdle: 3
  246. # # 最大活动连接数
  247. # maxActive: 20
  248. #
  249. # # 缓存配置
  250. # cache:
  251. # # 缓存及会话共享(专业版)
  252. # isClusterMode: true
  253. # # 清理全部缓存按钮所清理的缓存列表
  254. # clearNames: sysCache,corpCache,userCache,roleCache,fileUploadCache,msgPcPoolCache,cmsCache,bpmFormCache
  255. # # 用户缓存
  256. # userCache:
  257. # clearTaskPool:
  258. # corePoolSize: 5
  259. # maxPoolSize: 20
  260. # keepAliveSeconds: 60
  261. elasticsearch:
  262. rest:
  263. uris: 127.0.0.1:9200
  264. # 日志配置
  265. logging:
  266. config: classpath:config/logback-spring.xml
  267. #======================================#
  268. #========== System settings ===========#
  269. #======================================#
  270. # 管理基础路径
  271. #adminPath: /a
  272. # 前端基础路径
  273. #frontPath: /f
  274. # 分页相关
  275. #page:
  276. #
  277. # # 默认每页显示的数据条数
  278. # pageSize: 20
  279. #
  280. # # 每页最大条数,防止分页过大导致系统缓慢或内存溢出
  281. # maxPageSize: 999
  282. # 用户相关
  283. user:
  284. # # 指定超级管理员编号(研发团队使用的账号)
  285. # superAdminCode: system
  286. #
  287. # # 超级管理员获取菜单的最小权重(默认20;>=40二级管理员;>=60系统管理员;>=80超级管理员)
  288. # superAdminGetMenuMinWeight: 40
  289. #
  290. # # 系统管理员角色编号(客户方管理员使用的角色)
  291. # corpAdminRoleCode: corpAdmin
  292. #
  293. # # 二级管理员的控制权限类型(1拥有的权限 2管理的权限,管理功能包括:用户管理、组织机构、公司管理等)(v4.1.5+)
  294. # adminCtrlPermi: 2
  295. # 多租户模式(SAAS模式)(专业版)
  296. useCorpModel: false
  297. # # 登录账号是否租户内唯一,否则全局唯一
  298. # loginCodeCorpUnique: false
  299. #
  300. # # 是否启用验证码登录(手机、邮箱)
  301. # loginByValidCode: true
  302. #
  303. # # 用户类型配置信息(employee员工,member会员,btype往来单位,persion个人,expert专家,...),JSON 格式说明如下:
  304. # # {"用户类型":{"beanName":"Service或Dao的Bean名称","loginView":"登录页面视图","indexView":"主框架页面视图,支持 redirect: 前缀"}}
  305. # userTypeMap: >
  306. # {
  307. # employee: {beanName: "employeeService", loginView: "", indexView: "modules/sys/sysIndex"},
  308. # member: {beanName: "memberService", loginView: "", indexView: "modules/sys/sysIndexMember"},
  309. # btype: {beanName: "btypeInfoService", loginView: "", indexView: "modules/sys/sysIndexBtype"},
  310. # expert: {beanName: "expertService", loginView: "", indexView: "modules/sys/sysIndexExpert"}
  311. # }
  312. #
  313. # # 数据权限设置参数,可新增自定义数据权限,moduleCode: 针对模块, ctrlPermi: 权限类型, 0全部 1拥有权限 2管理权限
  314. # dataScopes: >
  315. # [{
  316. # moduleCode: "core",
  317. # ctrlPermi: "0",
  318. # ctrlName: "机构权限",
  319. # ctrlName_en: "Office",
  320. # ctrlType: "Office",
  321. # ctrlDataUrl: "/sys/office/treeData",
  322. # chkboxType: {"Y":"ps","N":"ps"},
  323. # expandLevel: -1,
  324. # remarks: ""
  325. # },{
  326. # moduleCode: "core",
  327. # ctrlName: "公司权限",
  328. # ctrlName_en: "Company",
  329. # ctrlType: "Company",
  330. # ctrlPermi: "0",
  331. # ctrlDataUrl: "/sys/company/treeData",
  332. # chkboxType: {"Y":"ps","N":"ps"},
  333. # expandLevel: -1,
  334. # remarks: ""
  335. # },{
  336. # moduleCode: "core",
  337. # ctrlName: "角色权限",
  338. # ctrlName_en: "Role",
  339. # ctrlType: "Role",
  340. # ctrlPermi: "2",
  341. # ctrlDataUrl: "/sys/role/treeData",
  342. # chkboxType: {"Y":"ps","N":"ps"},
  343. # expandLevel: -1,
  344. # remarks: ""
  345. # }]
  346. #
  347. # # 数据权限调试模式(会输出一些日志)
  348. # dataScopeDebug: false
  349. #
  350. # # 数据权限使用 API 方式实现(适应 Cloud 环境,基础用户表与业务数据表跨库的情况)
  351. # # 开启后设置 ctrlDataAttrName 加 AndChildren 后缀,ctrlDataParentCodesAttrName 清空
  352. # # 以方便读取树结构数据权限的表时包含子节点,举例如下:
  353. # # ctrlDataAttrName: "officeCodesAndChildren", ctrlDataParentCodesAttrName: ""
  354. # dataScopeApiMode: false
  355. # 角色管理
  356. #role:
  357. # # 扩展数据权限定义:3:本部门;4:本公司;5:本部门和本公司
  358. # extendDataScopes: >
  359. # {
  360. # 3: {
  361. # Office: {
  362. # #控制类型的类名 : "用来获取控制表名和主键字段名,如果为 NONE,则代表是不控制该类型权限",
  363. # ctrlTypeClass: "com.jeesite.modules.sys.entity.Office",
  364. # #控制数据的类名: "指定一个静态类名,方便 ctrlDataAttrName 得到权限数据,如:当前机构编码、当前公司编码、当前行业编码等",
  365. # ctrlDataClass: "com.jeesite.modules.sys.utils.EmpUtils",
  366. # #控制数据的类名下的属性名 : "可看做 ctrlDataClass 下的 get 方法,如:EmpUtils.getOfficeCodes(),支持返回字符串或字符串数组类型",
  367. # ctrlDataAttrName: "officeCodes",
  368. # #控制数据的所有上级编码 : "用于控制数据为树表的情况,为数组时,必须与 ctrlDataAttrName 返回的长度相同,不是树表设置为空",
  369. # ctrlDataParentCodesAttrName: "officeParentCodess"
  370. # },
  371. # Company: {
  372. # ctrlTypeClass: "NONE"
  373. # }
  374. # },
  375. # 4: {
  376. # Office: {
  377. # ctrlTypeClass: "NONE"
  378. # },
  379. # Company: {
  380. # ctrlTypeClass: "com.jeesite.modules.sys.entity.Company",
  381. # ctrlDataClass: "com.jeesite.modules.sys.utils.EmpUtils",
  382. # ctrlDataAttrName: "company.companyCode",
  383. # ctrlDataParentCodesAttrName: "company.parentCodes"
  384. # }
  385. # },
  386. # 5: {
  387. # Office: {
  388. # ctrlTypeClass: "com.jeesite.modules.sys.entity.Office",
  389. # ctrlDataClass: "com.jeesite.modules.sys.utils.EmpUtils",
  390. # ctrlDataAttrName: "officeCodes",
  391. # ctrlDataParentCodesAttrName: "officeParentCodess"
  392. # },
  393. # Company: {
  394. # ctrlTypeClass: "com.jeesite.modules.sys.entity.Company",
  395. # ctrlDataClass: "com.jeesite.modules.sys.utils.EmpUtils",
  396. # ctrlDataAttrName: "company.companyCode",
  397. # ctrlDataParentCodesAttrName: "company.parentCodes"
  398. # }
  399. # }
  400. # }
  401. # 菜单管理
  402. #menu:
  403. # # 根据模块状态去更新相连的菜单状态
  404. # updateStatusByModuleStatus: false
  405. # 国际化管理(专业版)
  406. lang:
  407. enabled: false
  408. # # 默认语言(4.1.3+)
  409. # defaultLocale: zh_CN
  410. # # 默认时区(4.1.3+)
  411. # defaultTimeZone: GMT+08:00
  412. # 任务调度(标准版)
  413. job:
  414. enabled: false
  415. # # 是否自动启动任务调度(可关闭)
  416. # autoStartup: true
  417. #
  418. # # 任务调度启动延迟设置(单位:秒)(建议设置项目启动完成后的时间)
  419. # startupDelay: 60
  420. #
  421. # # 任务调度线程池
  422. # threadPool:
  423. # threadCount: 10
  424. # threadPriority: 5
  425. #
  426. # # 调度设置,集群中每一个实例都必须使用相同的instanceName名称 (区分特定的调度器实例)
  427. # # 在微服务模式情况下,请将instanceName名称设置为当前微服务的名称
  428. # # 每一个instanceId必须不同,设置AUTO则自动生成
  429. # scheduler:
  430. # instanceName: JeeSiteScheduler
  431. # #instanceName: ${spring.application.name}
  432. # instanceId: AUTO
  433. #
  434. # # 任务调度集群设置
  435. # jobStore:
  436. # isClustered: true
  437. # dataSourceName: job
  438. # clusterCheckinInterval: 1000
  439. # className: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  440. # # 调度日志
  441. # log:
  442. # # 计划调度日志
  443. # scheduler:
  444. # enabled: true
  445. # # 是否只保存错误日志
  446. # errorLevel: true
  447. # # 任务执行日志
  448. # jobDetail:
  449. # enabled: true
  450. # # 是否只保存错误日志
  451. # errorLevel: true
  452. # # 计划触发日志
  453. # trigger:
  454. # enabled: false
  455. # 代码生成
  456. gen:
  457. enabled: true
  458. # # 表名字段名是否强制小写
  459. # forceLowerCase: true
  460. # 系统监控
  461. state:
  462. enabled: true
  463. #======================================#
  464. #========= Framework settings =========#
  465. #======================================#
  466. # Shiro 相关
  467. shiro:
  468. # 是否允许跨域访问 CORS,如果允许,设置允许的域名。v4.2.3 开始支持多个域名和模糊匹配,例如:http://*.jeesite.com,http://*.jeesite.net
  469. accessControlAllowOrigin: '*'
  470. # 允许跨域访问时 CORS,可以获取和返回的方法和请求头
  471. accessControlAllowMethods: GET, POST, OPTIONS
  472. accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
  473. accessControlExposeHeaders: x-remember
  474. # 主页路径
  475. defaultPath: ${shiro.loginUrl}
  476. # 登录相关设置
  477. loginUrl: ${adminPath}/login
  478. logoutUrl: ${shiro.loginUrl}
  479. successUrl: ${adminPath}/index
  480. # # Apereo CAS 相关配置(标准版)
  481. # casServerUrl: http://127.0.0.1:8981/cas
  482. # casClientUrl: http://127.0.0.1:8980/js
  483. # loginUrl: ${shiro.casServerUrl}?service=${shiro.casClientUrl}${adminPath}/login-cas
  484. # logoutUrl: ${shiro.casServerUrl}/logout?service=${shiro.loginUrl}
  485. # successUrl: ${shiro.casClientUrl}${adminPath}/index
  486. # # LDAP 相关设置(标准版)
  487. # ldapUrl: ldap://127.0.0.1:389
  488. # ldapUserDn: uid={0},ou=users,dc=mycompany,dc=com
  489. # 简单 SSO 登录相关配置
  490. sso:
  491. # 如果启用/sso/{username}/{token}单点登录,请修改此安全key并与单点登录系统key一致。
  492. secretKey: ~
  493. # 是否加密单点登录安全Key
  494. encryptKey: true
  495. # token 时效性,如:1天:yyyyMMdd、1小时:yyyyMMddHH、1分钟:yyyyMMddHHmm
  496. encryptKeyDateFormat: yyyyMMdd
  497. # 登录提交信息加密(如果不需要加密,设置为空即可)
  498. loginSubmit:
  499. # 加密用户名、密码、验证码,后再提交(key设置为3个,用逗号分隔)加密方式:DES(4.1.9及之前版本默认设置)
  500. # v4.2.0+ 开始支持 Base64 加密方式,方便移动端及第三方系统处理认证,可直接设置 Key 为 Base64(4.2.0+默认设置)
  501. #secretKey: thinkgem,jeesite,com
  502. secretKey: Base64
  503. #secretKey: ~
  504. # 记住我密钥设置,你可以通过 com.jeesite.test.RememberMeKeyGen 类快速生成一个秘钥。
  505. # 若不设置,则每次启动系统后自动生成一个新秘钥,这样会导致每次重启后,客户端记录的用户信息将失效。
  506. rememberMe:
  507. secretKey: ~
  508. # # 指定获取客户端IP的Header名称,防止IP伪造。指定为空,则使用原生方法获取IP。
  509. # remoteAddrHeaderName: X-Forwarded-For
  510. #
  511. # # 允许的请求方法设定,解决安全审计问题(BPM设计器用到了PUT或DELETE方法)
  512. # allowRequestMethods: GET, POST, OPTIONS, PUT, DELETE
  513. #
  514. # # 是否允许账号多地登录,如果设置为false,同一个设备类型的其它地点登录的相同账号被踢下线
  515. # isAllowMultiAddrLogin: true
  516. #
  517. # # 是否允许多账号多设备登录,如果设置为false,其它地点登录的相同账号全部登录设备将被踢下线
  518. # isAllowMultiDeviceLogin: true
  519. #
  520. # # 是否允许刷新主框架页,如果设置为false,刷新主页将导致重新登录。如安全性比较高的,如银行个人首页不允许刷新。
  521. # isAllowRefreshIndex: true
  522. #
  523. # # 是否允许嵌入到外部网站iframe中(true:不限制,false:不允许)
  524. # isAllowExternalSiteIframe: true
  525. #
  526. # # 设定允许获取的资源列表(v4.2.3)
  527. # #contentSecurityPolicy: "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; img-src 'self' 'unsafe-inline' 'unsafe-eval' data:"
  528. # # 是否允许跨域访问 CORS,如果允许,设置允许的域名。v4.2.3 开始支持多个域名和模糊匹配,例如:http://*.jeesite.com,http://*.jeesite.net
  529. # accessControlAllowOrigin: '*'
  530. #
  531. # # 允许跨域访问时 CORS,可以获取和返回的方法和请求头
  532. # accessControlAllowMethods: GET, POST, OPTIONS
  533. # accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
  534. # accessControlExposeHeaders: x-remember
  535. # # 是否允许接收跨域的Cookie凭证数据 CORS
  536. # accessControlAllowCredentials: false
  537. #
  538. # # 允许的网站来源地址,不设置为全部地址(避免一些跨站点请求伪造 CSRF、防盗链)
  539. # allowReferers: http://127.0.0.1,http://localhost
  540. #
  541. # # 是否在登录后生成新的Session(默认false)
  542. # isGenerateNewSessionAfterLogin: false
  543. #
  544. # # 内部系统访问过滤器,可设置多个允许的内部系统IP地址串,多个用逗号隔开
  545. # innerFilterAllowRemoteAddrs: 127.0.0.1
  546. # URI 权限过滤器定义(自定义添加参数时,请不要移除 ${adminPath}/** = user,否则会导致权限异常)
  547. # 提示:填写过滤规则,请注意先后顺序,从上到下,先匹配先受用规则,匹配成功后不再继续匹配。
  548. filterChainDefinitions: |
  549. ${adminPath}/mes/mesApp/ver = anon
  550. ${adminPath}/mes/mesLogin/login = anon
  551. ${adminPath}/mes/mesProductQm/add = anon
  552. ${adminPath}/mes/mesProductQm/testDate = anon
  553. ${adminPath}/mes/mesProductRecord/ghtime = anon
  554. ${adminPath}/mes/mesProductRecord/qmcheck = anon
  555. ${adminPath}/mes/mesProductRecord/qmresult = anon
  556. ${adminPath}/mes/mesProductRecord/device = anon
  557. ${adminPath}/mes/mesProduct/screen = anon
  558. ${adminPath}/mes/mesProduct/screenData = anon
  559. ${adminPath}/mes/mesProduct/screenPieceData = anon
  560. ${adminPath}/mes/mesProduct/screenHourly = anon
  561. ${adminPath}/mes/mesProductCcd/testDate = anon
  562. ${adminPath}/mes/mesProductCcd/add = anon
  563. ${adminPath}/mes/mesProductRecord/currentProduct = anon
  564. ${adminPath}/mes/mesProductFsw/add = anon
  565. ${adminPath}/mes/mesProductProd/batchsave = anon
  566. ${adminPath}/mes/mesProductRecord/cnccheck = anon
  567. ${adminPath}/mes/mesProductRecord/cncresult = anon
  568. ${adminPath}/mes/mesProductBs/batchsave = anon
  569. ${adminPath}/mes/mesLineProcessMaterial/materials = anon
  570. ${adminPath}/mes/mesMaterialPrebind/bind = anon
  571. ${adminPath}/mes/mesProductPush/test = anon
  572. ${adminPath}/mes/mesProcessCheckRecord/check = anon
  573. ${adminPath}/mes/mesProductRecord/work = anon
  574. ${adminPath}/mes/mesProductRecord/workData = anon
  575. ${adminPath}/mes/mesProductRecord/winfo = anon
  576. ${adminPath}/mes/mesProductRecord/select = anon
  577. ${adminPath}/mes/mesProductRecord/submit = anon
  578. ${adminPath}/mes/mesProductRecord/updateQualityByTiming = anon
  579. ${adminPath}/mes/mesProcessCheckGz/submit = anon
  580. ${adminPath}/mes/mesProcessCheckRecord/ulist = anon
  581. ${adminPath}/mes/mesProcessCheckRecord/checkView = anon
  582. ${adminPath}/mes/mesProcessCheckRecord/addCheck = anon
  583. ${adminPath}/mes/mesProcessCheckRecord/listData = anon
  584. ${adminPath}/mes/mesProcessCheckRecord/info = anon
  585. ${adminPath}/mes/mesProcessAlarm/alarmCount = anon
  586. ${adminPath}/mes/mesProductRecord/check = anon
  587. ${adminPath}/mes/mesProductRecord/getConfig = anon
  588. ${adminPath}/mes/mesElectricTorque/batchSave = anon
  589. ${adminPath}/mes/mesProductYgsl/batchsave = anon
  590. ${adminPath}/mes/mesProductHb/upload = anon
  591. ${adminPath}/mes/mesProductGp12/upload = anon
  592. ${adminPath}/mes/mesProductCmt/batchsave = anon
  593. ${adminPath}/mes/mesDeviceState/add = anon
  594. ${adminPath}/mes/mesDeviceTime/list2 = anon
  595. ${adminPath}/mes/mesDeviceTime/listData2 = anon
  596. ${adminPath}/mes/mesProductGumming/add = anon
  597. ${adminPath}/mes/mesDeviceState/add = anon
  598. ${adminPath}/mes/mesLineProcessMaterial/materials = anon
  599. ${adminPath}/mes/mesProductGumming/getSn = anon
  600. ${adminPath}/mes/mesProductRecord/ccdcheck = anon
  601. ${adminPath}/mes/mesProductRecord/updateOprno = anon
  602. ${adminPath}/mes/mesProduct/alarmData = anon
  603. ${adminPath}/mes/mesProcessAlarm/add = anon
  604. ${adminPath}/mes/mesProductDhbKc/in = anon
  605. ${adminPath}/mes/mesProductDhbKc/check = anon
  606. ${adminPath}/mes/mesProductDhbKc/ping = anon
  607. ${adminPath}/mes/mesProductDhbKc/listData = anon
  608. ${adminPath}/** = user
  609. # # URI 权限过滤器定义(以下参考,必须登录user可访问的地址和不需要登录anon可访问地址)
  610. # filterChainDefinitions: |
  611. # /ReportServer/** = user
  612. # ${adminPath}/file/** = anon
  613. # ${adminPath}/cms/* = anon
  614. # ${adminPath}/cms/site/select = anon
  615. # ${adminPath}/cms/site/* = anon
  616. # ${adminPath}/cms/category/treeData = anon
  617. # ${adminPath}/cms/category/* = anon
  618. # ${adminPath}/cms/article/* = anon
  619. # ${adminPath}/cms/link/* = anon
  620. # ${adminPath}/sys/corpAdmin/treeData = anon
  621. # ${adminPath}/${spring.application.name}/swagger/** = anon
  622. # ${adminPath}/** = user
  623. # Session 相关
  624. session:
  625. # 会话超时时间,单位:毫秒,10m=600000, 20m=1200000ms, 30m=1800000ms, 60m=3600000ms, 12h=43200000ms, 1day=86400000ms
  626. # 注意:如果超时超过30m,你还需要同步修改当前配置文件的属性:j2cache.caffeine.region.sessionCache 超时时间,大于这个值。
  627. # 游客会话超时时间:只访问了系统,但未登录系统的用户为游客,游客默认超时时间为10分钟,如:未登录系统时的图片验证码有效时间。
  628. sessionTimeout: 86400000
  629. # 登录系统后的用户超时时间(不明确 param_deviceType 参数的,默认设备为 pc 登录)
  630. pcSessionTimeout: 86400000
  631. # # 手机APP设备会话超时参数设置,登录请求参数加 param_deviceType=mobileApp 时有效,一般情况无需设置
  632. # mobileAppSessionTimeout: 1800000
  633. #
  634. # # 定时清理失效会话,清理用户直接关闭浏览器造成的孤立会话(设置为 0 关闭,微服务下只开启 core 即可)
  635. # sessionTimeoutClean: 1200000
  636. #
  637. # # 会话唯一标识SessionId在Cookie中的名称。
  638. # sessionIdCookieName: jeesite.session.id
  639. # #sessionIdCookiePath: ${server.servlet.context-path}
  640. #
  641. # # 共享的SessionId的Cookie名称,保存到跟路径下,第三方应用获取。同一域名下多个项目时需设置共享Cookie的名称。
  642. # shareSessionIdCookieName: ${session.sessionIdCookieName}
  643. #
  644. # # 其它 SimpleCookie 参数(v4.2.3)
  645. # sessionIdCookieSecure: false
  646. # sessionIdCookieHttpOnly: true
  647. # sessionIdCookieSameSite: LAX
  648. #
  649. # # 设置接收 SessionId 请求参数和请求头的名称
  650. # sessionIdParamName: __sid
  651. # sessionIdHeaderName: x-token
  652. #
  653. # # 当直接通过 __sid 参数浏览器访问页面时,可将直接将 __sid 写入 Cookie 应用于后面的访问
  654. # # 访问地址举例:http://host/js/a/index?__sid=123456&__cookie=true
  655. # writeCookieParamName: __cookie
  656. #
  657. # # 记住我的请求参数和请求头的名称(v4.2.3)
  658. # rememberMeHeaderName: x-remember
  659. # 系统缓存配置
  660. #j2cache:
  661. #
  662. # # 一级缓存
  663. # caffeine:
  664. # region:
  665. # #[cacheName]: size, xxxx[s|m|h|d]
  666. # default: 10000, 1h
  667. # sessionCache: 100000, 12h
  668. #
  669. # # 二级缓存
  670. # redis:
  671. # # 存储模式 (generic|hash)
  672. # storage: hash
  673. # # 通知订阅的通道名
  674. # channel: j2cache
  675. # # 缓存命名空间名
  676. # namespace: jeesite
  677. # # 消息监听器
  678. # listener:
  679. # taskPool:
  680. # corePoolSize: 8
  681. # maxPoolSize: 20
  682. # keepAliveSeconds: 60
  683. # queueCapacity: 1000
  684. #
  685. # # 通知订阅
  686. # broadcast:
  687. # # 缓存清理模式
  688. # # passive -> 被动清除,一级缓存过期进行通知各节点清除一二级缓存
  689. # # active -> 主动清除,二级缓存过期主动通知各节点清除,优点在于所有节点可以同时收到缓存清除,存储模式需要设置为 generic
  690. # # blend -> 两种模式一起运作,对于各个节点缓存准确以及及时性要求高的可以使用,正常用前两种模式中一个就可
  691. # cache_clean_mode: passive
  692. # MyBatis 相关
  693. mybatis:
  694. # @MyBatisDao、Aliases 扫描基础包,如果多个,用“,”分隔
  695. scanBasePackage: com.jeesite.modules
  696. # # TypeHandlers 扫描基础包,如果多个,用“,”分隔
  697. # scanTypeHandlersPackage: ~
  698. #
  699. # # 是否开启 JDBC 管理事务,默认 Spring 管理事务 v4.2.3
  700. # jdbcTransaction: false
  701. #
  702. # # 批量插入和更新的分批默认大小(防止库一次性接受不了太大的sql语句)
  703. # defaultBatchSize: 500
  704. # Mapper文件刷新线程
  705. mapper:
  706. refresh:
  707. enabled: true
  708. # delaySeconds: 60
  709. # sleepSeconds: 3
  710. # mappingPath: mappings
  711. # Web 相关
  712. web:
  713. # # AJAX 接受参数名和请求头名(v4.3.0)
  714. # ajaxParamName: __ajax
  715. # ajaxHeaderName: x-ajax
  716. #
  717. # # MVC 视图相关
  718. # view:
  719. #
  720. # # 系统主题名称,主题视图优先级最高,如果主题下无这个视图文件则访问默认视图
  721. # # 引入页面头部:'/themes/'+themeName+'/include/header.html'
  722. # # 引入页面尾部:'/themes/'+themeName+'/include/footer.html'
  723. # themeName: default
  724. #
  725. # # 使用智能参数接收器,同时支持 JSON 和 FormData 的参数接受
  726. # smartMethodArgumentResolver: true
  727. #
  728. # # 使用 .json、.xml 后缀匹配返回视图数据(Spring官方已不推荐使用)
  729. # favorPathExtension: false
  730. # # 使用 __ajax=json、__ajax=xml 后缀匹配返回视图数据
  731. # favorParameter: true
  732. # # 使用 x-ajax=json、x-ajax=xml 请求头匹配返回视图数据
  733. # favorHeader: true
  734. # MVC 拦截器
  735. interceptor:
  736. # 后台管理日志记录拦截器
  737. log:
  738. enabled: true
  739. addPathPatterns: >
  740. ${adminPath}/**
  741. excludePathPatterns: >
  742. ${adminPath}/index,
  743. ${adminPath}/login,
  744. ${adminPath}/desktop,
  745. ${adminPath}/index/menuTree,
  746. ${adminPath}/sys/online/count,
  747. ${adminPath}/**/server/rtInfo,
  748. ${adminPath}/**/treeData,
  749. ${adminPath}/file/**,
  750. ${adminPath}/tags/*,
  751. ${adminPath}/msg/**
  752. # 前台自动切换到手机视图拦截器
  753. mobile:
  754. enabled: false
  755. addPathPatterns: >
  756. ${frontPath}/**
  757. excludePathPatterns: ~
  758. # # 静态文件后缀,过滤静态文件,以提高访问性能。
  759. # staticFile: .css,.js,.map,.png,.jpg,.gif,.jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk,.otf,.eot,.svg,.ttf,.woff,.woff2
  760. #
  761. # # 静态文件后缀,排除的url路径,指定哪些uri路径不进行静态文件过滤。
  762. # staticFileExcludeUri: /druid/
  763. #
  764. # # 静态资源路径前缀,可做 CDN 加速优化,默认前面增加 ctxPath 前缀,如果前面写 “//” 两个斜杠 或 包含 “://” 不加 ctxPath。
  765. # staticPrefix: /static
  766. #
  767. # # 严格模式(更严格的数据安全验证)
  768. # strictMode: false
  769. #
  770. # # 自定义正则表达式验证(主键、登录名)
  771. # validator:
  772. # id: '[a-zA-Z0-9_\-/#\u4e00-\u9fa5]{0,64}'
  773. # user.loginCode: '[a-zA-Z0-9_\u4e00-\u9fa5]{4,20}'
  774. #
  775. # # 默认的日期格式(JsonMapper)
  776. # json:
  777. # defaultDateFormat: yyyy-MM-dd HH:mm:ss
  778. #
  779. # # 默认不启用(为兼用旧版保留,建议使用 CORS)
  780. # jsonp:
  781. # enabled: false
  782. # callback: __callback
  783. # 核心模块的Web功能(仅作为微服务时设为false)
  784. core:
  785. enabled: true
  786. # 在线API文档工具
  787. swagger:
  788. enabled: true
  789. # 错误页面500.html是否输出错误信息(正式环境,为提供安全性可设置为false)
  790. error:
  791. page:
  792. printErrorInfo: true
  793. #======================================#
  794. #======== FileUpload settings =========#
  795. #======================================#
  796. # 文件上传
  797. file:
  798. enabled: true
  799. # # 文件上传根路径,设置路径中不允许包含“userfiles”,在指定目录中系统会自动创建userfiles目录,如果不设置默认为contextPath路径
  800. baseDir: D:/mescloud
  801. # baseDir: /www/wwwroot/mes_cloud_610
  802. #
  803. # # 上传文件的相对路径(支持:yyyy, MM, dd, HH, mm, ss, E)
  804. uploadPath: 'files1/{yyyy}{MM}/'
  805. #
  806. # # 上传单个文件最大字节(500M),在这之上还有 > Tomcat限制 > Nginx限制,等,此设置会覆盖 spring.http.multipart.maxFileSize 设置
  807. # maxFileSize: '500*1024*1024'
  808. #
  809. # # 设置允许上传的文件后缀(全局设置)
  810. # imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
  811. # mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv,
  812. # fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,.7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk,
  813. #
  814. # # 允许上传的文件内容类型(图片、word、excel、ppt)防止修改后缀恶意上传文件(默认不启用验证)
  815. # #allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png,
  816. # # application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,
  817. # # application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
  818. # # application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation
  819. #
  820. # # 上传图片自动压缩宽高,指定为 -1 不进行压缩(全局设置) v4.1.7
  821. #imageMaxWidth: 1024
  822. #imageMaxHeight: 768
  823. imageMaxWidth: -1
  824. imageMaxHeight: -1
  825. #
  826. # # 是否启用秒传
  827. # checkmd5: true
  828. #
  829. # # 是否开启分片上传
  830. # chunked: true
  831. # # 分片大小,单位字节(10M)
  832. # chunkSize: '10*1024*1024'
  833. # # 最大上传线程数
  834. # threads: 3
  835. #
  836. # # 是否启用检查点(支持断点续传,上传)
  837. # checkpoint: true
  838. #
  839. # # 是否用文件流方式下载(支持断点续传,下载)
  840. # isFileStreamDown: true
  841. # 视频转码
  842. #video:
  843. #
  844. # # 视频格式转换 ffmpeg.exe 所放的路径
  845. # ffmpegFile: d:/tools/video/ffmpeg-4.9/bin/ffmpeg.exe
  846. # #ffmpegFile: d:/tools/video/libav-10.6-win64/bin/avconv.exe
  847. #
  848. # # 视频格式转换 mencoder.exe 所放的路径
  849. # mencoderFile: d:/tools/video/mencoder-4.9/mencoder.exe
  850. #
  851. # # 将mp4视频的元数据信息转到视频第一帧
  852. # qtFaststartFile: d:/tools/video/qt-faststart/qt-faststart.exe
  853. # 文件管理是否启用租户模式
  854. #filemanager:
  855. # useCorpModel: false
  856. #======================================#
  857. #========== Message settings ==========#
  858. #======================================#
  859. # 消息提醒中心(专业版)
  860. msg:
  861. enabled: false
  862. # # 是否开启实时发送消息(保存消息后立即检查未读消息并发送),分布式部署下请单独配置消息发送服务,不建议开启此选项。
  863. # realtime:
  864. # # 是否开启
  865. # enabled: true
  866. # # 消息实时推送任务Bean名称
  867. # beanName: msgLocalPushTask
  868. # # 消息推送线程池
  869. # pushTaskPool:
  870. # corePoolSize: 5
  871. # maxPoolSize: 20
  872. # keepAliveSeconds: 60
  873. #
  874. # # 推送失败次数,如果推送次数超过了设定次数,仍不成功,则放弃并保存到历史
  875. # pushFailNumber: 3
  876. #
  877. # # 邮件发送参数
  878. # email:
  879. # beanName: emailSendService
  880. # fromAddress: test@163.com
  881. # fromPassword: 123456
  882. # fromHostName: smtp.163.com
  883. # sslOnConnect: false
  884. # sslSmtpPort: 994
  885. #
  886. # # 短信网关
  887. # sms:
  888. # beanName: smsSendService
  889. # url: http://localhost:80/msg/sms/send
  890. # data: username=jeesite&password=jeesite.com
  891. # prefix: 【JeeSite】
  892. # suffix: ~
  893. #======================================#
  894. #========== Project settings ==========#
  895. #======================================#
  896. # 计件统计产品前缀配置
  897. mes:
  898. piecework:
  899. product:
  900. prefixes: +KA64,+KB23