application.yml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  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/mesProductYgsl/batchsave = anon
  604. ${adminPath}/mes/mesProductHb/upload = anon
  605. ${adminPath}/mes/mesProductCmt/batchsave = anon
  606. ${adminPath}/mes/mesDeviceState/add = anon
  607. ${adminPath}/mes/mesDeviceTime/list2 = anon
  608. ${adminPath}/mes/mesDeviceTime/listData2 = anon
  609. ${adminPath}/mes/mesProductGumming/add = anon
  610. ${adminPath}/mes/mesDeviceState/add = anon
  611. ${adminPath}/mes/mesLineProcessMaterial/materials = anon
  612. ${adminPath}/mes/mesProductGumming/getSn = anon
  613. ${adminPath}/mes/mesProductRecord/ccdcheck = anon
  614. ${adminPath}/mes/mesProductRecord/updateOprno = anon
  615. ${adminPath}/mes/mesProductRecord/checkQuality = anon
  616. ${adminPath}/mes/mesProduct/alarmData = anon
  617. ${adminPath}/mes/mesProcessAlarm/add = anon
  618. ${adminPath}/mes/mesProductRecord/checkDJ = anon
  619. ${adminPath}/mes/mesGp12Record/upload = anon
  620. ${adminPath}/mes/mesProductQm/addItem= anon
  621. ${adminPath}/mes/mesProductRecord/queryProduct = anon
  622. ${adminPath}/mes/mesProcessCheckRecord/addCheck2 = anon
  623. ${adminPath}/mes/mesGlueRecord/olist = anon
  624. ${adminPath}/mes/mesGlueRecord/listData2 = anon
  625. ${adminPath}/mes/mesGlueRecord/edit = anon
  626. ${adminPath}/mes/mesProductDbjBind/dbjBind = anon
  627. ${adminPath}/mes/mesGlueRecord/editSave = anon
  628. ${adminPath}/mes/mesProductRecord/select = anon
  629. ${adminPath}/mes/mesProductRecord/submit = anon
  630. ${adminPath}/mes/mesProductWsn/createSn = anon
  631. ${adminPath}/mes/mesProuctRecord/pcresult = anon
  632. ${adminPath}/mes/mesProductRecord/pccheck = anon
  633. ${adminPath}/mes/mesProductRecord/pccreate = anon
  634. ${adminPath}/mes/mesProductRecord/pcresult = anon
  635. ${adminPath}/mes/mesProductCncLife/saveLife = anon
  636. ${adminPath}/mes/mesProductCnc/saveBroken = anon
  637. ${adminPath}/mes/mesProductCncParam/batchsave = anon
  638. ${adminPath}/mes/mesProductCncToolGeo/saveToolGeo = anon
  639. ${adminPath}/mes/mesProductRecord/pcdevice = anon
  640. ${adminPath}/mes/mesProductRecord/checkProduct = anon
  641. ${adminPath}/mes/mesProductRecord/editProduct = anon
  642. ${adminPath}/mes/mesProductRecord/createProduct = anon
  643. ${adminPath}/mes/mesProductRecord/pdacheck = anon
  644. ${adminPath}/mes/mesProductRecord/pdaresult = anon
  645. ${adminPath}/mes/mesProductRecord/padListData = anon
  646. ${adminPath}/mes/mesProductRecord/padInfo = anon
  647. ${adminPath}/mes/mesProductRecordApi/createProduct = anon
  648. ${adminPath}/mes/mesQuality/cjList = anon
  649. ${adminPath}/mes/mesQuality/cjList = anon
  650. ${adminPath}/mes/mesQuality/cjList = anon
  651. ${adminPath}/mes/mesLineProcess/processList = anon
  652. ${adminPath}/mes/mes/mesQuality/checkProduct= anon
  653. ${adminPath}/mes/mesInspectionApi/genCode= anon
  654. ${adminPath}/mes/mesInspectionApi/save= anon
  655. ${adminPath}/mes/mesLineProcess/processListAll= anon
  656. ${adminPath}/mes/mesProductOrderApi/mesProductOrderCodeList= anon
  657. ${adminPath}/erp/mesProductOrder/receiveOrder= anon
  658. ${adminPath}/mes/wmsHouseControllerApi/wmsHouseList= anon
  659. ${adminPath}/mes/mesInboundControllerApi/inboundSave= anon
  660. ${adminPath}/mes/mesInboundControllerApi/mesInboundList= anon
  661. ${adminPath}/mes/mesInspectionApi/mesInspectionList= anon
  662. ${adminPath}/mes/mesInboundControllerApi/mesInboundList= anon
  663. ${adminPath}/mes/mesUnpackApi/mesUnpackList= anon
  664. ${adminPath}/mes/mesMaterial/saveMaterial= anon
  665. ${adminPath}/mes/mesProductRecord/pdaRcl= anon
  666. ${adminPath}/mes/mesMaterialRk/jxCode= anon
  667. ${adminPath}/mes/mesMaterialRk/mesToErp= anon
  668. ${adminPath}/mes/mesProductReport/mesToErp= anon
  669. ${adminPath}/erp/mesProductOrder/receiveOrder= anon
  670. ${adminPath}/erp/mesProductOrder/orderList= anon
  671. ${adminPath}/erp/mesProductOrder/orderInfo= anon
  672. ${adminPath}/mes/mesMaterialLl/materialLl= anon
  673. ${adminPath}/mes/mesMaterialLl/codeList= anon
  674. ${adminPath}/mes/mesMaterialLl/codeInfo= anon
  675. ${adminPath}/mes/mesMaterialTl/mesMaterialTl= anon
  676. ${adminPath}/mes/mesProductCnc/save= anon
  677. ${adminPath}/mes/mesProductCncLife/saveLife= anon
  678. ${adminPath}/mes/mesProductCncParam/batchsave= anon
  679. ${adminPath}/mes/mesProductCncToolGeo/saveToolGeo= anon
  680. ${adminPath}/mes/mesProduct/screen= anon
  681. ${adminPath}/mes/mesProduct/screen3= anon
  682. ${adminPath}/mes/mesProduct/screen5= anon
  683. ${adminPath}/mes/mesProduct/screen6= anon
  684. ${adminPath}/mes/mesProduct/hourlyUpDownOkData = anon
  685. ${adminPath}/mes/mesProduct/defectTypeData= anon
  686. ${adminPath}/mes/mesProductScreen/latestConfig= anon
  687. ${adminPath}/mes/mesDeviceAlarm/listData= anon
  688. ${adminPath}/mes/mesRepair/listData= anon
  689. ${adminPath}/mes/mesScrap/listData= anon
  690. ${adminPath}/mes/mesLineProcess/listData= anon
  691. ${adminPath}/mes/mesProductRecord/weekQualityData= anon
  692. ${adminPath}/mes/mesProductRecord/dayCapacityData= anon
  693. ${adminPath}/mes/mesProductRecord/shiftCapacityData= anon
  694. ${adminPath}/mes/mesProductRecord/monthlyProductData= anon
  695. ${adminPath}/mes/mesProductRecord/listData= anon
  696. ${adminPath}/mes/mesPlan/latestPlanNums= anon
  697. ${adminPath}/mes/mesDevice/listData= anon
  698. ${adminPath}/sys/empUser/listData= anon
  699. ${adminPath}/mes/mesProductVoltage/add= anon
  700. ${adminPath}/** = user
  701. # # URI 权限过滤器定义(以下参考,必须登录user可访问的地址和不需要登录anon可访问地址)
  702. # filterChainDefinitions: |
  703. # /ReportServer/** = user
  704. # ${adminPath}/file/** = anon
  705. # ${adminPath}/cms/* = anon
  706. # ${adminPath}/cms/site/select = anon
  707. # ${adminPath}/cms/site/* = anon
  708. # ${adminPath}/cms/category/treeData = anon
  709. # ${adminPath}/cms/category/* = anon
  710. # ${adminPath}/cms/article/* = anon
  711. # ${adminPath}/cms/link/* = anon
  712. # ${adminPath}/sys/corpAdmin/treeData = anon
  713. # ${adminPath}/${spring.application.name}/swagger/** = anon
  714. # ${adminPath}/** = user
  715. # Session 相关
  716. session:
  717. # 会话超时时间,单位:毫秒,10m=600000, 20m=1200000ms, 30m=1800000ms, 60m=3600000ms, 12h=43200000ms, 1day=86400000ms
  718. # 注意:如果超时超过30m,你还需要同步修改当前配置文件的属性:j2cache.caffeine.region.sessionCache 超时时间,大于这个值。
  719. # 游客会话超时时间:只访问了系统,但未登录系统的用户为游客,游客默认超时时间为10分钟,如:未登录系统时的图片验证码有效时间。
  720. sessionTimeout: 86400000
  721. # 登录系统后的用户超时时间(不明确 param_deviceType 参数的,默认设备为 pc 登录)
  722. pcSessionTimeout: 86400000
  723. # # 手机APP设备会话超时参数设置,登录请求参数加 param_deviceType=mobileApp 时有效,一般情况无需设置
  724. # mobileAppSessionTimeout: 1800000
  725. #
  726. # # 定时清理失效会话,清理用户直接关闭浏览器造成的孤立会话(设置为 0 关闭,微服务下只开启 core 即可)
  727. # sessionTimeoutClean: 1200000
  728. #
  729. # # 会话唯一标识SessionId在Cookie中的名称。
  730. # sessionIdCookieName: jeesite.session.id
  731. # #sessionIdCookiePath: ${server.servlet.context-path}
  732. #
  733. # # 共享的SessionId的Cookie名称,保存到跟路径下,第三方应用获取。同一域名下多个项目时需设置共享Cookie的名称。
  734. # shareSessionIdCookieName: ${session.sessionIdCookieName}
  735. #
  736. # # 其它 SimpleCookie 参数(v4.2.3)
  737. # sessionIdCookieSecure: false
  738. # sessionIdCookieHttpOnly: true
  739. # sessionIdCookieSameSite: LAX
  740. #
  741. # # 设置接收 SessionId 请求参数和请求头的名称
  742. # sessionIdParamName: __sid
  743. # sessionIdHeaderName: x-token
  744. #
  745. # # 当直接通过 __sid 参数浏览器访问页面时,可将直接将 __sid 写入 Cookie 应用于后面的访问
  746. # # 访问地址举例:http://host/js/a/index?__sid=123456&__cookie=true
  747. # writeCookieParamName: __cookie
  748. #
  749. # # 记住我的请求参数和请求头的名称(v4.2.3)
  750. # rememberMeHeaderName: x-remember
  751. # 系统缓存配置
  752. #j2cache:
  753. #
  754. # # 一级缓存
  755. # caffeine:
  756. # region:
  757. # #[cacheName]: size, xxxx[s|m|h|d]
  758. # default: 10000, 1h
  759. # sessionCache: 100000, 12h
  760. #
  761. # # 二级缓存
  762. # redis:
  763. # # 存储模式 (generic|hash)
  764. # storage: hash
  765. # # 通知订阅的通道名
  766. # channel: j2cache
  767. # # 缓存命名空间名
  768. # namespace: jeesite
  769. # # 消息监听器
  770. # listener:
  771. # taskPool:
  772. # corePoolSize: 8
  773. # maxPoolSize: 20
  774. # keepAliveSeconds: 60
  775. # queueCapacity: 1000
  776. #
  777. # # 通知订阅
  778. # broadcast:
  779. # # 缓存清理模式
  780. # # passive -> 被动清除,一级缓存过期进行通知各节点清除一二级缓存
  781. # # active -> 主动清除,二级缓存过期主动通知各节点清除,优点在于所有节点可以同时收到缓存清除,存储模式需要设置为 generic
  782. # # blend -> 两种模式一起运作,对于各个节点缓存准确以及及时性要求高的可以使用,正常用前两种模式中一个就可
  783. # cache_clean_mode: passive
  784. # MyBatis 相关
  785. mybatis:
  786. # @MyBatisDao、Aliases 扫描基础包,如果多个,用“,”分隔
  787. scanBasePackage: com.jeesite.modules
  788. # # TypeHandlers 扫描基础包,如果多个,用“,”分隔
  789. # scanTypeHandlersPackage: ~
  790. #
  791. # # 是否开启 JDBC 管理事务,默认 Spring 管理事务 v4.2.3
  792. # jdbcTransaction: false
  793. #
  794. # # 批量插入和更新的分批默认大小(防止库一次性接受不了太大的sql语句)
  795. # defaultBatchSize: 500
  796. # Mapper文件刷新线程
  797. mapper:
  798. refresh:
  799. enabled: true
  800. # delaySeconds: 60
  801. # sleepSeconds: 3
  802. # mappingPath: mappings
  803. # Web 相关
  804. web:
  805. # # AJAX 接受参数名和请求头名(v4.3.0)
  806. # ajaxParamName: __ajax
  807. # ajaxHeaderName: x-ajax
  808. #
  809. # # MVC 视图相关
  810. # view:
  811. #
  812. # # 系统主题名称,主题视图优先级最高,如果主题下无这个视图文件则访问默认视图
  813. # # 引入页面头部:'/themes/'+themeName+'/include/header.html'
  814. # # 引入页面尾部:'/themes/'+themeName+'/include/footer.html'
  815. # themeName: default
  816. #
  817. # # 使用智能参数接收器,同时支持 JSON 和 FormData 的参数接受
  818. # smartMethodArgumentResolver: true
  819. #
  820. # # 使用 .json、.xml 后缀匹配返回视图数据(Spring官方已不推荐使用)
  821. # favorPathExtension: false
  822. # # 使用 __ajax=json、__ajax=xml 后缀匹配返回视图数据
  823. # favorParameter: true
  824. # # 使用 x-ajax=json、x-ajax=xml 请求头匹配返回视图数据
  825. # favorHeader: true
  826. # MVC 拦截器
  827. interceptor:
  828. # 后台管理日志记录拦截器
  829. log:
  830. enabled: true
  831. addPathPatterns: >
  832. ${adminPath}/**
  833. excludePathPatterns: >
  834. ${adminPath}/index,
  835. ${adminPath}/login,
  836. ${adminPath}/desktop,
  837. ${adminPath}/index/menuTree,
  838. ${adminPath}/sys/online/count,
  839. ${adminPath}/**/server/rtInfo,
  840. ${adminPath}/**/treeData,
  841. ${adminPath}/file/**,
  842. ${adminPath}/tags/*,
  843. ${adminPath}/msg/**
  844. # 前台自动切换到手机视图拦截器
  845. mobile:
  846. enabled: false
  847. addPathPatterns: >
  848. ${frontPath}/**
  849. excludePathPatterns: ~
  850. # # 静态文件后缀,过滤静态文件,以提高访问性能。
  851. # staticFile: .css,.js,.map,.png,.jpg,.gif,.jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk,.otf,.eot,.svg,.ttf,.woff,.woff2
  852. #
  853. # # 静态文件后缀,排除的url路径,指定哪些uri路径不进行静态文件过滤。
  854. # staticFileExcludeUri: /druid/
  855. #
  856. # # 静态资源路径前缀,可做 CDN 加速优化,默认前面增加 ctxPath 前缀,如果前面写 “//” 两个斜杠 或 包含 “://” 不加 ctxPath。
  857. # staticPrefix: /static
  858. #
  859. # # 严格模式(更严格的数据安全验证)
  860. # strictMode: false
  861. #
  862. # # 自定义正则表达式验证(主键、登录名)
  863. # validator:
  864. # id: '[a-zA-Z0-9_\-/#\u4e00-\u9fa5]{0,64}'
  865. # user.loginCode: '[a-zA-Z0-9_\u4e00-\u9fa5]{4,20}'
  866. #
  867. # # 默认的日期格式(JsonMapper)
  868. # json:
  869. # defaultDateFormat: yyyy-MM-dd HH:mm:ss
  870. #
  871. # # 默认不启用(为兼用旧版保留,建议使用 CORS)
  872. # jsonp:
  873. # enabled: false
  874. # callback: __callback
  875. # 核心模块的Web功能(仅作为微服务时设为false)
  876. core:
  877. enabled: true
  878. # 在线API文档工具
  879. swagger:
  880. enabled: true
  881. # 错误页面500.html是否输出错误信息(正式环境,为提供安全性可设置为false)
  882. error:
  883. page:
  884. printErrorInfo: true
  885. #======================================#
  886. #======== FileUpload settings =========#
  887. #======================================#
  888. # 文件上传
  889. file:
  890. enabled: true
  891. # # 文件上传根路径,设置路径中不允许包含“userfiles”,在指定目录中系统会自动创建userfiles目录,如果不设置默认为contextPath路径
  892. baseDir: D:/mescloud
  893. # baseDir: /www/wwwroot/mes_cloud_dy
  894. #
  895. # # 上传文件的相对路径(支持:yyyy, MM, dd, HH, mm, ss, E)
  896. uploadPath: 'files1/{yyyy}{MM}/'
  897. #
  898. # # 上传单个文件最大字节(500M),在这之上还有 > Tomcat限制 > Nginx限制,等,此设置会覆盖 spring.http.multipart.maxFileSize 设置
  899. # maxFileSize: '500*1024*1024'
  900. #
  901. # # 设置允许上传的文件后缀(全局设置)
  902. # imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
  903. # 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,
  904. # 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,
  905. #
  906. # # 允许上传的文件内容类型(图片、word、excel、ppt)防止修改后缀恶意上传文件(默认不启用验证)
  907. # #allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png,
  908. # # application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,
  909. # # application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
  910. # # application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation
  911. #
  912. # # 上传图片自动压缩宽高,指定为 -1 不进行压缩(全局设置) v4.1.7
  913. #imageMaxWidth: 1024
  914. #imageMaxHeight: 768
  915. imageMaxWidth: -1
  916. imageMaxHeight: -1
  917. #
  918. # # 是否启用秒传
  919. # checkmd5: true
  920. #
  921. # # 是否开启分片上传
  922. # chunked: true
  923. # # 分片大小,单位字节(10M)
  924. # chunkSize: '10*1024*1024'
  925. # # 最大上传线程数
  926. # threads: 3
  927. #
  928. # # 是否启用检查点(支持断点续传,上传)
  929. # checkpoint: true
  930. #
  931. # # 是否用文件流方式下载(支持断点续传,下载)
  932. # isFileStreamDown: true
  933. # 视频转码
  934. #video:
  935. #
  936. # # 视频格式转换 ffmpeg.exe 所放的路径
  937. # ffmpegFile: d:/tools/video/ffmpeg-4.9/bin/ffmpeg.exe
  938. # #ffmpegFile: d:/tools/video/libav-10.6-win64/bin/avconv.exe
  939. #
  940. # # 视频格式转换 mencoder.exe 所放的路径
  941. # mencoderFile: d:/tools/video/mencoder-4.9/mencoder.exe
  942. #
  943. # # 将mp4视频的元数据信息转到视频第一帧
  944. # qtFaststartFile: d:/tools/video/qt-faststart/qt-faststart.exe
  945. # 文件管理是否启用租户模式
  946. #filemanager:
  947. # useCorpModel: false
  948. #======================================#
  949. #========== Message settings ==========#
  950. #======================================#
  951. # 消息提醒中心(专业版)
  952. msg:
  953. enabled: false
  954. # # 是否开启实时发送消息(保存消息后立即检查未读消息并发送),分布式部署下请单独配置消息发送服务,不建议开启此选项。
  955. # realtime:
  956. # # 是否开启
  957. # enabled: true
  958. # # 消息实时推送任务Bean名称
  959. # beanName: msgLocalPushTask
  960. # # 消息推送线程池
  961. # pushTaskPool:
  962. # corePoolSize: 5
  963. # maxPoolSize: 20
  964. # keepAliveSeconds: 60
  965. #
  966. # # 推送失败次数,如果推送次数超过了设定次数,仍不成功,则放弃并保存到历史
  967. # pushFailNumber: 3
  968. #
  969. # # 邮件发送参数
  970. # email:
  971. # beanName: emailSendService
  972. # fromAddress: test@163.com
  973. # fromPassword: 123456
  974. # fromHostName: smtp.163.com
  975. # sslOnConnect: false
  976. # sslSmtpPort: 994
  977. #
  978. # # 短信网关
  979. # sms:
  980. # beanName: smsSendService
  981. # url: http://localhost:80/msg/sms/send
  982. # data: username=jeesite&password=jeesite.com
  983. # prefix: 【JeeSite】
  984. # suffix: ~
  985. #======================================#
  986. #========== Project settings ==========#
  987. #======================================#
  988. #======================================#
  989. #========== MES OPC UA / S7 ==========#
  990. #======================================#
  991. # FSW 采集(OPC UA / SINUMERIK 828D,DRIES 鼎捷点位)
  992. mes:
  993. fsw:
  994. enabled: true
  995. opcua:
  996. url: opc.tcp://10.0.20.141:4840
  997. username: OpcUaClient
  998. password: oPCuA_123
  999. # FSW Modbus TCP 握手(工件码质量校验 + 过程参数采集)
  1000. modbus:
  1001. enabled: false
  1002. host: 10.0.20.220
  1003. port: 502
  1004. unitId: 1
  1005. oprno: OP230 # 工位号,必填,例如 OP210A
  1006. lineSn: XT # 产线编号,可空(空则按工件类型自动解析)