jeecg-dev.yaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. spring:
  2. datasource:
  3. druid:
  4. stat-view-servlet:
  5. enabled: true
  6. loginUsername: admin
  7. loginPassword: 123456
  8. allow:
  9. web-stat-filter:
  10. enabled: true
  11. dynamic:
  12. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  13. # 连接池的配置信息
  14. # 初始化大小,最小,最大
  15. initial-size: 5
  16. min-idle: 5
  17. maxActive: 20
  18. # 配置获取连接等待超时的时间
  19. maxWait: 60000
  20. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  21. timeBetweenEvictionRunsMillis: 60000
  22. # 配置一个连接在池中最小生存的时间,单位是毫秒
  23. minEvictableIdleTimeMillis: 300000
  24. validationQuery: SELECT 1 FROM DUAL
  25. testWhileIdle: true
  26. testOnBorrow: false
  27. testOnReturn: false
  28. # 打开PSCache,并且指定每个连接上PSCache的大小
  29. poolPreparedStatements: true
  30. maxPoolPreparedStatementPerConnectionSize: 20
  31. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  32. filters: stat,wall,slf4j
  33. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  34. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  35. datasource:
  36. master:
  37. url: jdbc:mysql://${MYSQL-HOST:jeecg-boot-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:jeecg-boot}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  38. username: ${MYSQL-USER:root}
  39. password: ${MYSQL-PWD:root}
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. # 多数据源配置
  42. #multi-datasource1:
  43. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  44. #username: root
  45. #password: root
  46. #driver-class-name: com.mysql.cj.jdbc.Driver
  47. #redis 配置
  48. redis:
  49. database: 0
  50. host: jeecg-boot-redis
  51. lettuce:
  52. pool:
  53. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  54. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  55. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  56. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  57. shutdown-timeout: 100ms
  58. password:
  59. port: 6379
  60. #rabbitmq配置
  61. rabbitmq:
  62. host: jeecg-boot-rabbitmq
  63. username: guest
  64. password: guest
  65. port: 5672
  66. publisher-confirms: true
  67. publisher-returns: true
  68. virtual-host: /
  69. listener:
  70. simple:
  71. acknowledge-mode: manual
  72. #消费者的最小数量
  73. concurrency: 1
  74. #消费者的最大数量
  75. max-concurrency: 1
  76. #是否支持重试
  77. retry:
  78. enabled: true
  79. #minidao
  80. minidao :
  81. base-package: org.jeecg.modules.jmreport.*
  82. #jeecg专用配置
  83. jeecg :
  84. # 本地:local\Minio:minio\阿里云:alioss
  85. uploadType: local
  86. path :
  87. #文件上传根目录 设置
  88. upload: D://opt//upFiles
  89. #webapp文件路径
  90. webapp: D://opt//webapp
  91. shiro:
  92. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/map/**,/jmreport/bigscreen2/**
  93. #阿里云oss存储配置
  94. oss:
  95. endpoint: oss-cn-beijing.aliyuncs.com
  96. accessKey: ??
  97. secretKey: ??
  98. bucketName: jeecgdev
  99. staticDomain: ??
  100. # ElasticSearch 6设置
  101. elasticsearch:
  102. cluster-name: jeecg-ES
  103. cluster-nodes: 127.0.0.1:9200
  104. check-enabled: false
  105. # 表单设计器配置
  106. desform:
  107. # 主题颜色(仅支持 16进制颜色代码)
  108. theme-color: "#1890ff"
  109. # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置)
  110. upload-type: system
  111. map:
  112. # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
  113. baidu: ??
  114. # 在线预览文件服务器地址配置
  115. file-view-domain: 127.0.0.1:8012
  116. # minio文件上传
  117. minio:
  118. minio_url: http://minio.jeecg.com
  119. minio_name: ??
  120. minio_pass: ??
  121. bucketName: otatest
  122. #大屏报表参数设置
  123. jmreport:
  124. mode: dev
  125. #是否需要校验token
  126. is_verify_token: false
  127. #必须校验方法
  128. verify_methods: remove,delete,save,add,update
  129. #Wps在线文档
  130. wps:
  131. domain: https://wwo.wps.cn/office/
  132. appid: ??
  133. appsecret: ??
  134. #xxl-job配置
  135. xxljob:
  136. enabled: false
  137. adminAddresses: http://jeecg-boot-xxljob:9080/xxl-job-admin
  138. appname: ${spring.application.name}
  139. accessToken: ''
  140. logPath: logs/jeecg/job/jobhandler/
  141. logRetentionDays: 30
  142. #自定义路由配置 yml nacos database
  143. route:
  144. config:
  145. data-id: jeecg-gateway-router
  146. group: DEFAULT_GROUP
  147. data-type: yml
  148. #分布式锁配置
  149. redisson:
  150. address: jeecg-boot-redis:6379
  151. password:
  152. type: STANDALONE
  153. enabled: true
  154. #Mybatis输出sql日志
  155. logging:
  156. level:
  157. org.jeecg.modules.system.mapper : info
  158. #cas单点登录
  159. cas:
  160. prefixUrl: http://localhost:8888/cas
  161. #swagger
  162. knife4j:
  163. production: false
  164. basic:
  165. enable: true
  166. username: jeecg
  167. password: jeecg1314
  168. #第三方登录
  169. justauth:
  170. enabled: true
  171. type:
  172. GITHUB:
  173. client-id: ??
  174. client-secret: ??
  175. redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/github/callback
  176. WECHAT_ENTERPRISE:
  177. client-id: ??
  178. client-secret: ??
  179. redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/wechat_enterprise/callback
  180. agent-id: 1000002
  181. DINGTALK:
  182. client-id: ??
  183. client-secret: ??
  184. redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/dingtalk/callback
  185. cache:
  186. type: default
  187. prefix: 'demo::'
  188. timeout: 1h
  189. #第三方APP对接
  190. third-app:
  191. enabled: false
  192. type:
  193. #企业微信
  194. WECHAT_ENTERPRISE:
  195. enabled: false
  196. #CORP_ID
  197. client-id: ??
  198. #SECRET
  199. client-secret: ??
  200. agent-id: ??
  201. #自建应用秘钥(新版企微需要配置)
  202. # agent-app-secret: ??
  203. #钉钉
  204. DINGTALK:
  205. enabled: false
  206. # appKey
  207. client-id: ??
  208. # appSecret
  209. client-secret: ??
  210. agent-id: ??