application-local.yml

deposite-service
mail@pastecode.io avatar
unknown
java
a year ago
2.4 kB
4
Indexable
Never
server:
  port: 8101

spring:

  application:
    name: deposit-service

  jpa:
    open-in-view: false

  cloud:
    stream:
      function:
        definition: depositWithdrawal;depositReplenishment;depositRollback
      bindings:
        depositWithdrawal-in-0:
          destination: deposit-withdrawal
          group: deposit-withdrawal
        depositWithdrawal-out-0:
          destination: source-back
        depositReplenishment-in-0:
          destination: deposit-replenishment
          group: deposit-replenishment
        depositReplenishment-out-0:
          destination: destination-back
        depositRollback-in-0:
          destination: deposit-rollback
          group: deposit-rollback

  datasource:
    hikari:
      maximum-pool-size: 5
      maxLifetime: 300000
      minimumIdle: 5
    driverClassName: org.postgresql.Driver
    url: jdbc:postgresql://localhost:5555/postgres?currentSchema=deposit_service
    username: postgres
    password: admin

  cache:
    jcache:
      config: classpath:ehcache.xml

  flyway:
    schemas: deposit_service
    user: postgres
    password: admin

  kafka:
    bootstrap-servers: localhost:29092
    consumer:
      group-id: deposit-service
      auto-offset-reset: earliest

  task:
    scheduling:
      pool:
        size: 4

scheduler:
  deposit: "0 0 0 * * *"

eureka:
  instance:
    instance-id: ${spring.application.name}-${random.uuid}
    preferIpAddress: true
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka

logging:
  level:
    ROOT: INFO
    org.springframework: INFO
    com.andersen: TRACE

springdoc:
  show-actuator: true
  use-management-port: false
  api-docs:
    path: '/api-docs'
  swagger-ui:
    groups-order: DESC
    path: '/swagger-ui'
    disable-swagger-default-url: true
    operationsSorter: method
    oauth:
      clientId: api-gateway
      clientSecret: pj6aJs5zKOpBx6jceL3DjixJU1lnbcqm
  default-consumes-media-type: 'application/json'
  default-produces-media-type: 'application/json'
  model-converters:
    pageable-converter:
      enabled: true
  oAuthFlow:
    authorizationUrl: http://172.17.1.21:30001/auth/realms/Meetingroom-New/protocol/openid-connect/auth
    tokenUrl: http://172.17.1.21:30001/auth/realms/Meetingroom-New/protocol/openid-connect/token
    use-pkce-with-authorization-code-grant: true
feign:
  autoconfiguration:
    jackson:
      enabled: true