Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # application.yml
- ---
- spring:
- application:
- name: ricette
- cloud:
- consul:
- host: consul
- port: 8500
- discovery:
- instanceId: ${spring.application.name}-${spring.cloud.client.hostname}-${random.value}
- healthCheckPath: /actuator/health
- healthCheckInterval: 10s
- # configurazione per effettuare esprimenti, NON USARE UN PRODUZIONE
- # dopo quanto tempo consul deve smettere di restituire servizi che non rispondono all'health check?
- healthCheckCriticalTimeout: 60s
- # consul deve restituire solo servizi che passano l'health check (default=false)
- queryPassing: true
- loadbalancer:
- ribbon.enabled: false
- kafka:
- bootstrap-servers: kafka:9092
- consumer:
- bootstrap-servers: kafka:9092
- group-id: ${spring.application.name}
- auto-offset-reset: earliest
- key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
- value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
- properties:
- spring.json.trusted.packages: "*"
- producer:
- bootstrap-servers: kafka:9092
- key-serializer: org.apache.kafka.common.serialization.StringSerializer
- value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
- jpa:
- hibernate.ddl-auto: update
- generate-ddl: true
- show-sql: true
- datasource:
- url: jdbc:mysql://mysql-ricette:3306/ricette
- username: user
- password: password
- #driverClassName: com.mysql.jdbc.Driver
- server:
- port: ${PORT:${SERVER_PORT:0}}
- # port: 8080
- # fa il logging dei comandi sql eseguiti
- #spring.jpa.show-sql: true
- # disable OSIV
- spring.jpa.open-in-view: false
- asw:
- kafka:
- channel:
- out: ricette
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement