application.yml 696 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
spring:
  application:
    name: zookeeper-example
  cloud:
    config:
      enabled: false
    zookeeper:
      connect-string: localhost:2181
      discovery:
        metadata:
          management.context-path: /foo
          health.path: /ping
13 14 15 16 17
          user.name: user
          user.password: password
  profiles:
    active:
      - secure
18

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
management:
  server:
    servlet:
      context-path: /foo
  endpoints:
    web:
      exposure:
        include: "*"
      path-mapping:
        health: /ping
  endpoint:
    health:
      show-details: ALWAYS

---
spring:
  profiles: insecure

---
spring:
  profiles: secure
  security:
    user:
      name: "user"
      password: "password"
44