application-dev.yml 9.4 KB

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