application-test.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. management:
  2. endpoints:
  3. web:
  4. exposure:
  5. include: metrics,httptrace
  6. spring:
  7. rabbitmq:
  8. host: 39.106.184.70
  9. port: 5672
  10. username: guest
  11. password: guest
  12. servlet:
  13. multipart:
  14. max-file-size: -1
  15. max-request-size: -1
  16. mail:
  17. host: smtp.163.com
  18. username: jeecgos@163.com
  19. password: ??
  20. properties:
  21. mail:
  22. smtp:
  23. auth: true
  24. starttls:
  25. enable: true
  26. required: true
  27. #json 时间戳统一转换
  28. jackson:
  29. date-format: yyyy-MM-dd HH:mm:ss
  30. time-zone: GMT+8
  31. aop:
  32. proxy-target-class: true
  33. #配置freemarker
  34. freemarker:
  35. # 设置模板后缀名
  36. suffix: .ftl
  37. # 设置文档类型
  38. content-type: text/html
  39. # 设置页面编码格式
  40. charset: UTF-8
  41. # 设置页面缓存
  42. cache: false
  43. prefer-file-system-access: false
  44. # 设置ftl文件路径
  45. template-loader-path:
  46. - classpath:/templates
  47. # 设置静态文件路径,js,css等
  48. mvc:
  49. static-path-pattern: /**
  50. resource:
  51. static-locations: classpath:/static/,classpath:/public/
  52. autoconfigure:
  53. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  54. datasource:
  55. druid:
  56. stat-view-servlet:
  57. enabled: true
  58. loginUsername: admin
  59. loginPassword: 123456
  60. web-stat-filter:
  61. enabled: true
  62. dynamic:
  63. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  64. # 连接池的配置信息
  65. # 初始化大小,最小,最大
  66. connection-init-sql: set names utf8mb4
  67. initial-size: 5
  68. min-idle: 5
  69. maxActive: 20
  70. # 配置获取连接等待超时的时间
  71. maxWait: 60000
  72. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  73. timeBetweenEvictionRunsMillis: 60000
  74. # 配置一个连接在池中最小生存的时间,单位是毫秒
  75. minEvictableIdleTimeMillis: 300000
  76. validationQuery: SELECT 1 FROM DUAL
  77. testWhileIdle: true
  78. testOnBorrow: false
  79. testOnReturn: false
  80. # 打开PSCache,并且指定每个连接上PSCache的大小
  81. poolPreparedStatements: true
  82. maxPoolPreparedStatementPerConnectionSize: 20
  83. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  84. filters: stat,slf4j
  85. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  86. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  87. datasource:
  88. master:
  89. url: jdbc:mysql://39.106.184.70:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  90. username: hcst
  91. password: test@20190531
  92. driver-class-name: com.mysql.jdbc.Driver
  93. # 多数据源配置
  94. #redis 配置
  95. redis:
  96. database: 0
  97. host: 127.0.0.1
  98. lettuce:
  99. pool:
  100. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  101. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  102. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  103. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  104. shutdown-timeout: 100ms
  105. password: ''
  106. port: 6379
  107. #mybatis plus 设置
  108. mybatis-plus:
  109. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:cn/com/ctop/**/xml/*Mapper.xml
  110. global-config:
  111. # 关闭MP3.0自带的banner
  112. banner: false
  113. db-config:
  114. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  115. id-type: 4
  116. # 默认数据库表下划线命名
  117. table-underline: true
  118. configuration:
  119. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  120. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  121. #jeecg专用配置
  122. jeecg:
  123. ffmpeg:
  124. bin: D:\java\ffmpeg\bin\ffmpeg.exe
  125. path:
  126. #文件上传根目录 设置
  127. #文件上传根目录 设置
  128. upload: /data/upload
  129. #webapp文件路径
  130. webapp: /data/webapp
  131. video-upload: /data/upload/video/
  132. image-upload: /data/upload/image/
  133. chrome-driver: /usr/bin/chromedriver
  134. csv-upload: /data/upload/csv/
  135. report-history: /data/report/history/
  136. report-daily: /data/report/daily/
  137. kuaishou:
  138. group-control:
  139. path: http://127.0.0.1
  140. port: 4723
  141. logging:
  142. level:
  143. root: info
  144. config: classpath:logback-test.xml
  145. chrome:
  146. script:
  147. clean: sh /mnt/webapp/cleanProcess.sh
  148. oss:
  149. replace:
  150. replace-value: oss-cn-beijing-internal
  151. replace-old-value: oss-cn-beijing
  152. download: /mnt/file/video/