application.yml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.2.0
  7. # 版权年份
  8. copyrightYear: 2020
  9. # polarDb开关
  10. demoEnabled: false
  11. isPolar: true
  12. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /u03/cpmsfile/uploadPath)
  13. profile: D:/ruoyi/uploadPath
  14. # 邮件中链接跳转路径 示例(本地:http://localhost/cpms/index.html#,服务器:http://47.114.101.16:8080/cpms/index.html# https://cpms.basf-ypc.net.cn/cpms/index.html#)
  15. requestJumpPath: https://cpms.basf-ypc.net.cn/cpms/index.html#
  16. # 图像识别地址
  17. imagePath: http://1.13.182.229:7089/detection_web
  18. # 获取ip地址开关
  19. addressEnabled: false
  20. # 验证码类型 math 数组计算 char 字符验证
  21. captchaType: math
  22. jpush:
  23. appKey: 2c1d3d89dc7cfb5ff22e6eb9
  24. masterSecret: ca98a81c8339a81b3b85fb6a
  25. isDev: true
  26. # isDev: false
  27. # 开发环境配置
  28. server:
  29. # 服务器的HTTP端口,默认为8080
  30. port: 8090
  31. servlet:
  32. # 应用的访问路径
  33. context-path: /
  34. tomcat:
  35. # tomcat的URI编码
  36. uri-encoding: UTF-8
  37. # tomcat最大线程数,默认为200
  38. max-threads: 200
  39. # Tomcat启动初始化的线程数,默认值25
  40. min-spare-threads: 25
  41. connection-timeout: 2000000ms
  42. # 日志配置
  43. logging:
  44. level:
  45. com.ruoyi: debug
  46. org.springframework: warn
  47. file:
  48. name: logs/app.log
  49. # Spring配置
  50. spring:
  51. # 资源信息
  52. messages:
  53. # 国际化资源文件路径
  54. basename: i18n/messages
  55. profiles:
  56. active: druid
  57. #activiti配置
  58. activiti:
  59. database-schema-update: false
  60. db-identity-used: true
  61. history-level: full
  62. db-history-used: true
  63. #启用异步执行器
  64. job-executor-activate: true
  65. freemarker:
  66. checkTemplateLocation: false
  67. classic-compatible: true
  68. suffix: .ftlh
  69. ettings:
  70. recognize_standard_file_extensions: true
  71. # 文件上传
  72. servlet:
  73. multipart:
  74. # 单个文件大小
  75. max-file-size: 20MB
  76. # 设置总上传的文件大小
  77. max-request-size: 30MB
  78. # 服务模块
  79. devtools:
  80. restart:
  81. # 热部署开关
  82. enabled: true
  83. # redis 配置
  84. redis:
  85. # 地址
  86. host: 47.114.101.16
  87. # host: localhost
  88. # 端口,默认为6379
  89. port: 6379
  90. # 密码
  91. password: ssy666666
  92. database: 1
  93. # host: 127.0.0.1
  94. # port: 6379
  95. # password:
  96. # 连接超时时间
  97. timeout: 10s
  98. lettuce:
  99. pool:
  100. # 连接池中的最小空闲连接
  101. min-idle: 0
  102. # 连接池中的最大空闲连接
  103. max-idle: 8
  104. # 连接池的最大数据库连接数
  105. max-active: 8
  106. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  107. max-wait: -1ms
  108. # 邮箱配置
  109. mail:
  110. host: smtpout.basf-it-services.com
  111. protocol: smtp
  112. default-encoding: UTF-8
  113. password:
  114. username:
  115. port: 25
  116. properties.mail.stmp.socketFactory.class: javax.net.ssl.SSLSocketFactory
  117. properties.mail.debug: true
  118. from: CPMS.byc@BASF-YPC.com.cn
  119. # host: smtp.exmail.qq.com
  120. # protocol: smtp
  121. # default-encoding: UTF-8
  122. # password: vvTAT8hciG7FLk4C
  123. # username: email@seashoreept.com
  124. # port: 587
  125. # properties.mail.stmp.socketFactory.class: javax.net.ssl.SSLSocketFactory
  126. # properties.mail.debug: true
  127. # from: email@seashoreept.com
  128. # token配置
  129. token:
  130. # 令牌自定义标识
  131. header: Authorization
  132. # 令牌密钥
  133. secret: abcdefghijklmnopqrstuvwxyz
  134. # 令牌有效期(默认30分钟)
  135. expireTime: 600000
  136. # MyBatis配置
  137. mybatis:
  138. # 搜索指定包别名
  139. typeAliasesPackage: com.ruoyi.project.**.domain
  140. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  141. mapperLocations: classpath*:mybatis/**/*Mapper.xml
  142. # 加载全局的配置文件
  143. configLocation: classpath:mybatis/mybatis-config.xml
  144. #mybatis
  145. mybatis-plus:
  146. mapper-locations: classpath*:mybatis/**/*Mapper.xml
  147. #实体扫描,多个package用逗号或者分号分隔
  148. typeAliasesPackage: com.ruoyi.project.**.domain
  149. global-config:
  150. #数据库相关配置
  151. db-config:
  152. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  153. id-type: AUTO
  154. logic-delete-field: DEL_FLAG #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
  155. logic-delete-value: 2 # 逻辑已删除值
  156. logic-not-delete-value: 0 # 逻辑未删除值
  157. banner: false
  158. #原生配置
  159. configuration:
  160. map-underscore-to-camel-case: true
  161. cache-enabled: false
  162. call-setters-on-nulls: true
  163. jdbc-type-for-null: 'null'
  164. # PageHelper分页插件
  165. pagehelper:
  166. helperDialect: oracle
  167. reasonable: false
  168. supportMethodsArguments: true
  169. params: count=countSql
  170. # Swagger配置
  171. swagger:
  172. # 是否开启swagger
  173. enabled: true
  174. # 请求前缀
  175. pathMapping: /dev-api
  176. # 防止XSS攻击
  177. xss:
  178. # 过滤开关
  179. enabled: true
  180. # 排除链接(多个用逗号分隔)
  181. excludes: /system/notice/*
  182. # 匹配链接
  183. urlPatterns: /system/*,/monitor/*,/tool/*
  184. # 文件预览
  185. jodconverter:
  186. local:
  187. enabled: true
  188. # 设置LibreOffice主目录
  189. # office-home: /opt/libreoffice7.2 C:/Program Files/LibreOffice
  190. office-home: C:/Program Files/LibreOffice
  191. max-tasks-per-process: 100
  192. port-numbers: 8100
  193. # 开启多个LibreOffice进程,每个端口对应一个进程
  194. portNumbers: 9080,9081,9089
  195. # 代码生成
  196. gen:
  197. # 作者
  198. author: ssy
  199. # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  200. packageName: com.ruoyi.project.pssr # 自动去除表前缀,默认是true
  201. autoRemovePre: false
  202. # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
  203. tablePrefix: sys_
  204. #设置密钥
  205. # 解密java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input="dIaPam9ayoR1AqBvm+B0GO9RBhpIqIVe" password=test algorithm=PBEWithMD5AndDES
  206. #C:\Users\ly\.m2\repository\org\jasypt\jasypt\1.9.2>java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="ssy123456" password=test algorithm=PBEWithMD5AndDES
  207. jasypt:
  208. encryptor:
  209. password: test