application.yml 4.5 KB

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