application-dev.yml 5.1 KB

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