application-dev.yml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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: 10MB
  24. max-request-size: 10MB
  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. #定时任务启动开关,true-开 false-关
  41. auto-startup: true
  42. #延迟1秒启动定时任务
  43. startup-delay: 1s
  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. aop:
  71. proxy-target-class: true
  72. #配置freemarker
  73. freemarker:
  74. # 设置模板后缀名
  75. suffix: .ftl
  76. # 设置文档类型
  77. content-type: text/html
  78. # 设置页面编码格式
  79. charset: UTF-8
  80. # 设置页面缓存
  81. cache: false
  82. prefer-file-system-access: false
  83. # 设置ftl文件路径
  84. template-loader-path:
  85. - classpath:/templates
  86. template_update_delay: 0
  87. # 设置静态文件路径,js,css等
  88. mvc:
  89. static-path-pattern: /**
  90. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  91. pathmatch:
  92. matching-strategy: ant_path_matcher
  93. resource:
  94. static-locations: classpath:/static/,classpath:/public/
  95. autoconfigure:
  96. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  97. datasource:
  98. druid:
  99. stat-view-servlet:
  100. enabled: true
  101. loginUsername: admin
  102. loginPassword: 123456
  103. allow:
  104. web-stat-filter:
  105. enabled: true
  106. dynamic:
  107. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  108. # 连接池的配置信息
  109. # 初始化大小,最小,最大
  110. initial-size: 5
  111. min-idle: 5
  112. maxActive: 20
  113. # 配置获取连接等待超时的时间
  114. maxWait: 60000
  115. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  116. timeBetweenEvictionRunsMillis: 60000
  117. # 配置一个连接在池中最小生存的时间,单位是毫秒
  118. minEvictableIdleTimeMillis: 300000
  119. validationQuery: SELECT 1
  120. testWhileIdle: true
  121. testOnBorrow: false
  122. testOnReturn: false
  123. # 打开PSCache,并且指定每个连接上PSCache的大小
  124. poolPreparedStatements: true
  125. maxPoolPreparedStatementPerConnectionSize: 20
  126. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  127. filters: stat,wall,slf4j
  128. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  129. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  130. datasource:
  131. master:
  132. url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  133. username: root
  134. password: root1120
  135. driver-class-name: com.mysql.cj.jdbc.Driver
  136. # 多数据源配置
  137. #multi-datasource1:
  138. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  139. #username: root
  140. #password: root
  141. #driver-class-name: com.mysql.cj.jdbc.Driver
  142. #redis 配置
  143. redis:
  144. database: 0
  145. host: 127.0.0.1
  146. port: 6379
  147. password: ''
  148. #mybatis plus 设置
  149. mybatis-plus:
  150. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
  151. global-config:
  152. # 关闭MP3.0自带的banner
  153. banner: false
  154. db-config:
  155. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  156. id-type: ASSIGN_ID
  157. # 默认数据库表下划线命名
  158. table-underline: true
  159. configuration:
  160. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  161. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  162. # 返回类型为Map,显示null对应的字段
  163. call-setters-on-nulls: true
  164. #jeecg专用配置
  165. minidao:
  166. base-package: org.jeecg.modules.jmreport.*
  167. jeecg:
  168. # 是否启用安全模式
  169. safeMode: false
  170. # 签名密钥串(前后端要一致,正式发布请自行修改)
  171. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  172. # 签名拦截接口
  173. signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys
  174. #local、minio、alioss
  175. uploadType: local
  176. # 前端访问地址
  177. domainUrl:
  178. pc: http://localhost:3100
  179. app: http://localhost:8051
  180. path:
  181. #文件上传根目录 设置
  182. upload: /opt/upFiles
  183. #webapp文件路径
  184. webapp: /opt/webapp
  185. shiro:
  186. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
  187. #阿里云oss存储和大鱼短信秘钥配置
  188. oss:
  189. accessKey: ??
  190. secretKey: ??
  191. endpoint: oss-cn-beijing.aliyuncs.com
  192. bucketName: jeecgdev
  193. # ElasticSearch 6设置
  194. elasticsearch:
  195. cluster-name: jeecg-ES
  196. cluster-nodes: 127.0.0.1:9200
  197. check-enabled: false
  198. # 在线预览文件服务器地址配置
  199. file-view-domain: http://fileview.jeecg.com
  200. # minio文件上传
  201. minio:
  202. minio_url: http://minio.jeecg.com
  203. minio_name: ??
  204. minio_pass: ??
  205. bucketName: otatest
  206. #大屏报表参数设置
  207. jmreport:
  208. mode: dev
  209. #数据字典是否进行saas数据隔离,自己看自己的字典
  210. saas: false
  211. #xxl-job配置
  212. xxljob:
  213. enabled: false
  214. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  215. appname: ${spring.application.name}
  216. accessToken: ''
  217. address: 127.0.0.1:30007
  218. ip: 127.0.0.1
  219. port: 30007
  220. logPath: logs/jeecg/job/jobhandler/
  221. logRetentionDays: 30
  222. #分布式锁配置
  223. redisson:
  224. address: 127.0.0.1:6379
  225. password:
  226. type: STANDALONE
  227. enabled: true
  228. #cas单点登录
  229. cas:
  230. prefixUrl: http://cas.example.org:8443/cas
  231. #Mybatis输出sql日志
  232. logging:
  233. level:
  234. org.jeecg.modules.system.mapper: info
  235. #swagger
  236. knife4j:
  237. #开启增强配置
  238. enable: true
  239. #开启生产环境屏蔽
  240. production: false
  241. basic:
  242. enable: false
  243. username: jeecg
  244. password: jeecg1314
  245. #第三方登录
  246. justauth:
  247. enabled: true
  248. type:
  249. GITHUB:
  250. client-id: ??
  251. client-secret: ??
  252. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  253. WECHAT_ENTERPRISE:
  254. client-id: ??
  255. client-secret: ??
  256. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  257. agent-id: ??
  258. DINGTALK:
  259. client-id: ??
  260. client-secret: ??
  261. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  262. WECHAT_OPEN:
  263. client-id: ??
  264. client-secret: ??
  265. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  266. cache:
  267. type: default
  268. prefix: 'demo::'
  269. timeout: 1h
  270. #第三方APP对接
  271. third-app:
  272. enabled: false
  273. type:
  274. #企业微信
  275. WECHAT_ENTERPRISE:
  276. enabled: false
  277. #CORP_ID
  278. client-id: ??
  279. #SECRET
  280. client-secret: ??
  281. #自建应用id
  282. agent-id: ??
  283. #自建应用秘钥(新版企微需要配置)
  284. # agent-app-secret: ??
  285. #钉钉
  286. DINGTALK:
  287. enabled: false
  288. # appKey
  289. client-id: ??
  290. # appSecret
  291. client-secret: ??
  292. agent-id: ??