application-prod.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. server:
  2. port: 8080
  3. tomcat:
  4. max-swallow-size: -1
  5. error:
  6. include-exception: true
  7. include-stacktrace: ALWAYS
  8. include-message: ALWAYS
  9. servlet:
  10. context-path: /jeecg-boot
  11. compression:
  12. enabled: true
  13. min-response-size: 1024
  14. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  15. management:
  16. endpoints:
  17. web:
  18. exposure:
  19. include: metrics,httptrace
  20. spring:
  21. servlet:
  22. multipart:
  23. max-file-size: 200MB
  24. max-request-size: 200MB
  25. mail:
  26. host: smtp.163.com
  27. username: jeecgos@163.com
  28. password: ??
  29. properties:
  30. mail:
  31. smtp:
  32. auth: true
  33. starttls:
  34. enable: true
  35. required: true
  36. ## quartz定时任务,采用数据库方式
  37. quartz:
  38. job-store-type: jdbc
  39. initialize-schema: embedded
  40. #延迟1秒启动定时任务
  41. startup-delay: 1s
  42. #定时任务启动开关,true-开 false-关
  43. auto-startup: true
  44. #启动时更新己存在的Job
  45. overwrite-existing-jobs: true
  46. properties:
  47. org:
  48. quartz:
  49. scheduler:
  50. instanceName: MyScheduler
  51. instanceId: AUTO
  52. jobStore:
  53. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  54. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  55. tablePrefix: QRTZ_
  56. isClustered: true
  57. misfireThreshold: 12000
  58. clusterCheckinInterval: 15000
  59. threadPool:
  60. class: org.quartz.simpl.SimpleThreadPool
  61. threadCount: 10
  62. threadPriority: 5
  63. threadsInheritContextClassLoaderOfInitializingThread: true
  64. #json 时间戳统一转换
  65. jackson:
  66. date-format: yyyy-MM-dd HH:mm:ss
  67. time-zone: GMT+8
  68. jpa:
  69. open-in-view: false
  70. activiti:
  71. check-process-definitions: false
  72. #启用作业执行器
  73. async-executor-activate: false
  74. #启用异步执行器
  75. job-executor-activate: false
  76. aop:
  77. proxy-target-class: true
  78. #配置freemarker
  79. freemarker:
  80. # 设置模板后缀名
  81. suffix: .ftl
  82. # 设置文档类型
  83. content-type: text/html
  84. # 设置页面编码格式
  85. charset: UTF-8
  86. # 设置页面缓存
  87. cache: false
  88. prefer-file-system-access: false
  89. # 设置ftl文件路径
  90. template-loader-path:
  91. - classpath:/templates
  92. # 设置静态文件路径,js,css等
  93. mvc:
  94. static-path-pattern: /**
  95. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  96. pathmatch:
  97. matching-strategy: ant_path_matcher
  98. resource:
  99. static-locations: classpath:/static/,classpath:/public/
  100. autoconfigure:
  101. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  102. datasource:
  103. druid:
  104. stat-view-servlet:
  105. enabled: true
  106. loginUsername: admin
  107. loginPassword: 123456
  108. allow:
  109. web-stat-filter:
  110. enabled: true
  111. dynamic:
  112. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  113. # 连接池的配置信息
  114. # 初始化大小,最小,最大
  115. initial-size: 5
  116. min-idle: 5
  117. maxActive: 1000
  118. # 配置获取连接等待超时的时间
  119. maxWait: 60000
  120. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  121. timeBetweenEvictionRunsMillis: 60000
  122. # 配置一个连接在池中最小生存的时间,单位是毫秒
  123. minEvictableIdleTimeMillis: 300000
  124. validationQuery: SELECT 1 FROM DUAL
  125. testWhileIdle: true
  126. testOnBorrow: false
  127. testOnReturn: false
  128. # 打开PSCache,并且指定每个连接上PSCache的大小
  129. poolPreparedStatements: true
  130. maxPoolPreparedStatementPerConnectionSize: 20
  131. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  132. filters: stat,wall,slf4j
  133. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  134. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  135. datasource:
  136. master:
  137. validationQuery: SELECT 1 FROM DUAL
  138. driver-class-name: oracle.jdbc.OracleDriver
  139. url: jdbc:oracle:thin:@localhost:1521:ORCL
  140. username: jeecgboot
  141. password: jeecgboot
  142. # datasource:
  143. # master:
  144. # validationQuery: select 1
  145. # driver-class-name: org.postgresql.Driver
  146. # url: jdbc:postgresql://localhost/zrzyqc
  147. # username: postgres
  148. # password: postgres
  149. # 多数据源配置
  150. #multi-datasource1:
  151. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  152. #username: root
  153. #password: root
  154. #driver-class-name: com.mysql.cj.jdbc.Driver
  155. #redis 配置
  156. redis:
  157. database: 0
  158. host: 127.0.0.1
  159. lettuce:
  160. pool:
  161. max-active: 8 #最大连接数据库连接数,设 -1 为没有限制
  162. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  163. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  164. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  165. shutdown-timeout: 100ms
  166. password: ''
  167. port: 6379
  168. #mybatis plus 设置
  169. mybatis-plus:
  170. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
  171. global-config:
  172. # 关闭MP3.0自带的banner
  173. banner: false
  174. db-config:
  175. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  176. id-type: ASSIGN_ID
  177. # 默认数据库表下划线命名
  178. table-underline: true
  179. configuration:
  180. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  181. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  182. # 返回类型为Map,显示null对应的字段
  183. call-setters-on-nulls: true
  184. #jeecg专用配置
  185. minidao:
  186. base-package: org.jeecg.modules.jmreport.*
  187. jeecg:
  188. # 是否启用安全模式
  189. safeMode: false
  190. # 签名密钥串(前后端要一致,正式发布请自行修改)
  191. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  192. # 本地:local\Minio:minio\阿里云:alioss
  193. uploadType: local
  194. path:
  195. #文件上传根目录 设置
  196. upload: D:/upload
  197. #webapp文件路径
  198. webapp: /opt/jeecg-boot/webapp
  199. shiro:
  200. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo
  201. #阿里云oss存储和大鱼短信秘钥配置
  202. oss:
  203. accessKey: ??
  204. secretKey: ??
  205. endpoint: oss-cn-beijing.aliyuncs.com
  206. bucketName: jeecgdev
  207. staticDomain: https://static.jeecg.com
  208. # ElasticSearch 设置
  209. elasticsearch:
  210. cluster-name: jeecg-ES
  211. cluster-nodes: 127.0.0.1:9200
  212. check-enabled: true
  213. # 表单设计器配置
  214. desform:
  215. # 主题颜色(仅支持 16进制颜色代码)
  216. theme-color: "#1890ff"
  217. # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置)
  218. upload-type: system
  219. map:
  220. # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
  221. baidu: ??
  222. # 在线预览文件服务器地址配置
  223. file-view-domain: http://fileview.jeecg.com
  224. # minio文件上传
  225. minio:
  226. minio_url: http://minio.jeecg.com
  227. minio_name: ??
  228. minio_pass: ??
  229. bucketName: otatest
  230. #大屏报表参数设置
  231. jmreport:
  232. mode: prod
  233. #数据字典是否进行saas数据隔离,自己看自己的字典
  234. saas: false
  235. #是否需要校验token
  236. is_verify_token: true
  237. #必须校验方法
  238. verify_methods: remove,delete,save,add,update
  239. #Wps在线文档
  240. wps:
  241. domain: https://wwo.wps.cn/office/
  242. appid: ??
  243. appsecret: ??
  244. #xxl-job配置
  245. xxljob:
  246. enabled: false
  247. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  248. appname: ${spring.application.name}
  249. accessToken: ''
  250. address: 127.0.0.1:30007
  251. ip: 127.0.0.1
  252. port: 30007
  253. logPath: logs/jeecg/job/jobhandler/
  254. logRetentionDays: 30
  255. route:
  256. config:
  257. data-id: jeecg-gateway-router
  258. group: DEFAULT_GROUP
  259. #自定义路由配置 yml nacos database
  260. data-type: database
  261. #分布式锁配置
  262. redisson:
  263. address: 127.0.0.1:6379
  264. password:
  265. type: STANDALONE
  266. enabled: true
  267. #cas单点登录
  268. cas:
  269. prefixUrl: http://cas.example.org:8443/cas
  270. #Mybatis输出sql日志
  271. logging:
  272. level:
  273. org.jeecg.modules.system.mapper: info
  274. #swagger
  275. knife4j:
  276. #开启增强配置
  277. enable: true
  278. #开启生产环境屏蔽
  279. production: false
  280. basic:
  281. enable: true
  282. username: jeecg
  283. password: jeecg1314
  284. #第三方登录
  285. justauth:
  286. enabled: true
  287. type:
  288. GITHUB:
  289. client-id: ??
  290. client-secret: ??
  291. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  292. WECHAT_ENTERPRISE:
  293. client-id: ??
  294. client-secret: ??
  295. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  296. agent-id: ??
  297. DINGTALK:
  298. client-id: ??
  299. client-secret: ??
  300. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  301. WECHAT_OPEN:
  302. client-id: ??
  303. client-secret: ??
  304. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  305. cache:
  306. type: default
  307. prefix: 'demo::'
  308. timeout: 1h
  309. #第三方APP对接
  310. third-app:
  311. enabled: false
  312. type:
  313. #企业微信
  314. WECHAT_ENTERPRISE:
  315. enabled: false
  316. #CORP_ID
  317. client-id: ??
  318. #SECRET
  319. client-secret: ??
  320. #自建应用id
  321. agent-id: ??
  322. #自建应用秘钥(新版企微需要配置)
  323. # agent-app-secret: ??
  324. #钉钉
  325. DINGTALK:
  326. enabled: false
  327. # appKey
  328. client-id: ??
  329. # appSecret
  330. client-secret: ??
  331. agent-id: ??