application-test.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. server:
  2. port: 10080
  3. tomcat:
  4. max-swallow-size: -1
  5. basedir: /app/sp/smarttrade/temp/${spring.profiles.active}
  6. servlet:
  7. context-path: /router/mail
  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. servlet:
  19. multipart:
  20. max-file-size: 20MB
  21. max-request-size: 20MB
  22. jackson:
  23. date-format: yyyy-MM-dd HH:mm:ss
  24. time-zone: GMT+8
  25. aop:
  26. proxy-target-class: true
  27. #配置freemarker
  28. freemarker:
  29. # 设置模板后缀名
  30. suffix: .ftl
  31. # 设置文档类型
  32. content-type: text/html
  33. # 设置页面编码格式
  34. charset: UTF-8
  35. # 设置页面缓存
  36. cache: false
  37. prefer-file-system-access: false
  38. # 设置ftl文件路径
  39. template-loader-path:
  40. - classpath:/templates
  41. # 设置静态文件路径,js,css等 #redis 配置
  42. redis:
  43. host: test1.storlead.com #test1.storlead.com
  44. port: 59394
  45. database: 10
  46. lettuce:
  47. pool:
  48. max-wait: 100000
  49. max-idle: 10
  50. max-active: 100
  51. timeout: 5000
  52. password: bnoCWkyDqYA*ecT7FoL7
  53. mvc:
  54. static-path-pattern: /**
  55. resource:
  56. static-locations: classpath:/static/,classpath:/public/
  57. autoconfigure:
  58. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  59. datasource:
  60. dynamic:
  61. primary: master
  62. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  63. # 连接池的配置信息
  64. # 初始化大小,最小,最大
  65. initial-size: 5
  66. min-idle: 5
  67. maxActive: 20
  68. # 配置获取连接等待超时的时间
  69. maxWait: 60000
  70. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  71. timeBetweenEvictionRunsMillis: 60000
  72. # 配置一个连接在池中最小生存的时间,单位是毫秒
  73. minEvictableIdleTimeMillis: 300000
  74. validationQuery: SELECT 1 FROM DUAL
  75. testWhileIdle: true
  76. testOnBorrow: false
  77. testOnReturn: false
  78. # 打开PSCache,并且指定每个连接上PSCache的大小
  79. poolPreparedStatements: true
  80. maxPoolPreparedStatementPerConnectionSize: 20
  81. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  82. filters: stat,wall,slf4j
  83. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  84. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  85. datasource:
  86. master:
  87. url: jdbc:mysql://mysql.test.storlead.com:39091/sp_email_platform_test?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  88. username: root
  89. password: rCgRgLjH99Xvg5BN
  90. driver-class-name: com.mysql.jdbc.Driver
  91. trade:
  92. url: jdbc:mysql://mysql.test.storlead.com:39091/sp_trade_platform_test?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  93. username: root
  94. password: rCgRgLjH99Xvg5BN
  95. driver-class-name: com.mysql.jdbc.Driver
  96. #mybatis plus 设置
  97. mybatis-plus:
  98. mapper-locations: classpath*:/mapper/*Mapper.xml,classpath*:/mapper/*/*Mapper.xml
  99. # 实体扫描,多个 package 用逗号或者分号分隔
  100. type-aliases-package:
  101. typeEnumsPackage:
  102. # configuration:
  103. #配置显示查询SQL
  104. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  105. # default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
  106. global-config:
  107. # 关闭MP3.0自带的banner
  108. banner: false
  109. db-config:
  110. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  111. id-type: 4
  112. # 默认数据库表下划线命名
  113. table-underline: true
  114. #configuration:
  115. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  116. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  117. #Mybatis输出sql日志
  118. logging:
  119. file:
  120. # 日志存放目录
  121. path: /app/sp/${spring.application.name}/log
  122. level:
  123. root: info
  124. io:
  125. swagger:
  126. models:
  127. parameters:
  128. AbstractSerializableParameter: error
  129. c:
  130. a:
  131. icatch:
  132. provider:
  133. imp:
  134. AssemblerImp: debug
  135. o:
  136. s:
  137. h:
  138. c:
  139. j:
  140. Jackson2ObjectMapperBuilder: off # 禁止okhttp4 打印警告日志 For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  141. com:
  142. storlead: debug
  143. environment: test
  144. # 站内消息、邮件模板中的前端站点根地址(覆盖 application.yml 默认值)
  145. domainname: https://mail.storlead.com
  146. file:
  147. mode: 1
  148. filePath: /files
  149. active: test
  150. mac:
  151. path: ~/file/
  152. avatar: ~/avatar/
  153. linux:
  154. path: /mnt/vdb/storlead/sales/file/email/attachments/
  155. avatar: /mnt/vdb/storlead/sales/file/avatar/
  156. jpeg: /mnt/vdb/storlead/sales/file/email/image/
  157. windows:
  158. path: D:\images\file\
  159. avatar: D:\images\
  160. # 文件大小 /M
  161. maxSize: 100
  162. avatarMaxSize: 5