Advertisement
Guest User

Untitled

a guest
Aug 28th, 2020
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. # application.yml
  2. ---
  3. spring:
  4. application:
  5. name: ricette
  6. cloud:
  7. consul:
  8. host: consul
  9. port: 8500
  10. discovery:
  11. instanceId: ${spring.application.name}-${spring.cloud.client.hostname}-${random.value}
  12. healthCheckPath: /actuator/health
  13. healthCheckInterval: 10s
  14. # configurazione per effettuare esprimenti, NON USARE UN PRODUZIONE
  15. # dopo quanto tempo consul deve smettere di restituire servizi che non rispondono all'health check?
  16. healthCheckCriticalTimeout: 60s
  17. # consul deve restituire solo servizi che passano l'health check (default=false)
  18. queryPassing: true
  19. loadbalancer:
  20. ribbon.enabled: false
  21. kafka:
  22. bootstrap-servers: kafka:9092
  23. consumer:
  24. bootstrap-servers: kafka:9092
  25. group-id: ${spring.application.name}
  26. auto-offset-reset: earliest
  27. key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  28. value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
  29. properties:
  30. spring.json.trusted.packages: "*"
  31. producer:
  32. bootstrap-servers: kafka:9092
  33. key-serializer: org.apache.kafka.common.serialization.StringSerializer
  34. value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
  35. jpa:
  36. hibernate.ddl-auto: update
  37. generate-ddl: true
  38. show-sql: true
  39. datasource:
  40. url: jdbc:mysql://mysql-ricette:3306/ricette
  41. username: user
  42. password: password
  43. #driverClassName: com.mysql.jdbc.Driver
  44. server:
  45. port: ${PORT:${SERVER_PORT:0}}
  46. # port: 8080
  47.  
  48. # fa il logging dei comandi sql eseguiti
  49. #spring.jpa.show-sql: true
  50. # disable OSIV
  51. spring.jpa.open-in-view: false
  52.  
  53. asw:
  54. kafka:
  55. channel:
  56. out: ricette
  57.  
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement