application-test.yml 5.2 KB

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