application.yml 5.8 KB

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