application.yml 40 KB

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