application.yml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. # ===================================================================
  2. # Spring Boot configuration.
  3. #
  4. # This configuration will be overridden by the Spring profile you use,
  5. # for example application-dev.yml if you use the "dev" profile.
  6. #
  7. # More information on profiles: https://www.jhipster.tech/profiles/
  8. # More information on configuration properties: https://www.jhipster.tech/common-application-properties/
  9. # ===================================================================
  10. # ===================================================================
  11. # Standard Spring Boot properties.
  12. # Full reference is available at:
  13. # http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
  14. # ===================================================================
  15. ---
  16. # Conditionally disable springdoc on missing api-docs profile
  17. spring:
  18. config:
  19. activate:
  20. on-profile: '!api-docs'
  21. springdoc:
  22. api-docs:
  23. enabled: false
  24. ---
  25. management:
  26. endpoints:
  27. web:
  28. base-path: /management
  29. exposure:
  30. include:
  31. [
  32. 'configprops',
  33. 'env',
  34. 'health',
  35. 'info',
  36. 'jhimetrics',
  37. 'jhiopenapigroups',
  38. 'logfile',
  39. 'loggers',
  40. 'prometheus',
  41. 'threaddump',
  42. 'caches',
  43. 'liquibase',
  44. ]
  45. endpoint:
  46. health:
  47. show-details: when_authorized
  48. roles: 'ROLE_ADMIN'
  49. probes:
  50. enabled: true
  51. group:
  52. liveness:
  53. include: livenessState
  54. readiness:
  55. include: readinessState,db
  56. jhimetrics:
  57. enabled: true
  58. info:
  59. git:
  60. mode: full
  61. env:
  62. enabled: true
  63. health:
  64. mail:
  65. enabled: false # When using the MailService, configure an SMTP server and set this to true
  66. metrics:
  67. export:
  68. # Prometheus is the default metrics backend
  69. prometheus:
  70. enabled: true
  71. step: 60
  72. enable:
  73. http: true
  74. jvm: true
  75. logback: true
  76. process: true
  77. system: true
  78. distribution:
  79. percentiles-histogram:
  80. all: true
  81. percentiles:
  82. all: 0, 0.5, 0.75, 0.95, 0.99, 1.0
  83. tags:
  84. application: ${spring.application.name}
  85. web:
  86. server:
  87. request:
  88. autotime:
  89. enabled: true
  90. spring:
  91. application:
  92. name: trade
  93. profiles:
  94. # The commented value for `active` can be replaced with valid Spring profiles to load.
  95. # Otherwise, it will be filled in by gradle when building the JAR file
  96. # Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
  97. active: #spring.profiles.active#
  98. group:
  99. dev:
  100. - dev
  101. - api-docs
  102. - no-liquibase
  103. beta:
  104. - beta
  105. - no-liquibase
  106. prod:
  107. - prod
  108. - no-liquibase
  109. jmx:
  110. enabled: false
  111. data:
  112. jpa:
  113. repositories:
  114. bootstrap-mode: deferred
  115. jpa:
  116. open-in-view: false
  117. properties:
  118. hibernate.jdbc.time_zone: UTC
  119. hibernate.id.new_generator_mappings: true
  120. hibernate.connection.provider_disables_autocommit: true
  121. hibernate.cache.use_second_level_cache: true
  122. hibernate.cache.use_query_cache: false
  123. hibernate.generate_statistics: false
  124. # modify batch size as necessary
  125. hibernate.jdbc.batch_size: 25
  126. hibernate.order_inserts: true
  127. hibernate.order_updates: true
  128. hibernate.query.fail_on_pagination_over_collection_fetch: true
  129. hibernate.query.in_clause_parameter_padding: true
  130. hibernate:
  131. ddl-auto: update
  132. naming:
  133. physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
  134. implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
  135. messages:
  136. basename: i18n/messages
  137. main:
  138. allow-bean-definition-overriding: true
  139. mvc:
  140. pathmatch:
  141. matching-strategy: ant_path_matcher
  142. task:
  143. execution:
  144. thread-name-prefix: trade-task-
  145. pool:
  146. core-size: 2
  147. max-size: 50
  148. queue-capacity: 10000
  149. scheduling:
  150. thread-name-prefix: trade-scheduling-
  151. pool:
  152. size: 2
  153. thymeleaf:
  154. mode: HTML
  155. output:
  156. ansi:
  157. console-available: true
  158. servlet:
  159. multipart:
  160. max-file-size: 50MB
  161. max-request-size: 50MB
  162. location: ./upload/tmp/
  163. server:
  164. servlet:
  165. session:
  166. cookie:
  167. http-only: true
  168. springdoc:
  169. show-actuator: true
  170. # Properties to be exposed on the /info management endpoint
  171. info:
  172. # Comma separated list of profiles that will trigger the ribbon to show
  173. display-ribbon-on-profiles: 'dev'
  174. # ===================================================================
  175. # JHipster specific properties
  176. #
  177. # Full reference is available at: https://www.jhipster.tech/common-application-properties/
  178. # ===================================================================
  179. jhipster:
  180. clientApp:
  181. name: 'tradeApp'
  182. # By default CORS is disabled. Uncomment to enable.
  183. # cors:
  184. # allowed-origins: "http://localhost:8100,http://localhost:9000"
  185. # allowed-methods: "*"
  186. # allowed-headers: "*"
  187. # exposed-headers: "Authorization,Link,X-Total-Count,X-${jhipster.clientApp.name}-alert,X-${jhipster.clientApp.name}-error,X-${jhipster.clientApp.name}-params"
  188. # allow-credentials: true
  189. # max-age: 1800
  190. mail:
  191. from: trade@localhost
  192. api-docs:
  193. default-include-pattern: ${server.servlet.context-path:}/api/**
  194. management-include-pattern: ${server.servlet.context-path:}/management/**
  195. title: Trade API
  196. description: Trade API documentation
  197. version: 0.0.1
  198. terms-of-service-url:
  199. contact-name:
  200. contact-url:
  201. contact-email:
  202. license: unlicensed
  203. license-url:
  204. security:
  205. content-security-policy: "default-src 'self'; frame-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://unpkg.com/ https://dev.virtualearth.net https://storage.googleapis.com https://cdnjs.cloudflare.com https://d3js.org https://map.qq.com https://*.map.qq.com; style-src 'self' 'unsafe-inline' cdnjs.cloudflare.com; img-src 'self' https://*.map.qq.com https://mapapi.qq.com blob: data:; font-src 'self' data: https://*.aliyuncs.com https://fonts.gstatic.com ; worker-src 'self' blob: ; connect-src 'self' 'unsafe-inline' https://*.aliyuncs.com https://assets.ion.cesium.com http://*.virtualearth.net https://api.cesium.com https://*.map.gtimg.com https://*.map.qq.com https://mapstyle.qpic.cn"
  206. # ===================================================================
  207. # Application specific properties
  208. # Add your own application properties here, see the ApplicationProperties class
  209. # to have type-safe configuration, like in the JHipsterProperties above
  210. #
  211. # More documentation is available at:
  212. # https://www.jhipster.tech/common-application-properties/
  213. # ===================================================================
  214. application:
  215. ali-cloud:
  216. enable-sms: true
  217. access-key-id: LTAI5tMYjV29Hy1XKn3d79YD
  218. access-key-secret: 48we5KZdx9Bu2OiJ9hmXhQTf2aCut0
  219. sign-name: 伏羲碳惠交易平台
  220. templateCooperation: SMS_264860508
  221. templateCodeMessage: SMS_461080515
  222. templateSysRegistPassed: SMS_461065541
  223. templateRegistPassed: SMS_461025520
  224. templateRegistUnpassed: SMS_460935564
  225. templateAccountFreezed: SMS_264190885
  226. templateAccountUnfreezed: SMS_264030916
  227. templateAccountReset: SMS_264030920
  228. templateRegistBuyer: SMS_462425424
  229. plat-bank-account:
  230. user-id: 1
  231. account-name: 碳交易平台银行账号
  232. account-number: 1234567891234567
  233. issuing-bank: 平台开会行
  234. inter-bank-number: 银联号
  235. issuing-address: 开户行地址
  236. tempPath: ./trade/tmp/
  237. uploadPath: ./upload/
  238. ecspUploadPath: ../clibra/upload/
  239. wechatPay:
  240. merchantId: 1649012850
  241. appId: wx4bc491881ec58241
  242. privateKeyPath: ./wechatPay/apiclient_key.pem
  243. merchantSerialNumber: 509C23FE88EBBBA28BF0F9D9FA477FF93F9EDD24
  244. apiV3key: 5ugirU2woc4BQdGZjJlQX8GHmY4u8685