application-test.yml 5.7 KB

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