我正在通过链接https://howtodoinjava.com/spring-cloud/microservices-monitoring/开发微服务监控代码。当我为*
添加 management.endpoints.web.exposure.exclude
时。 Spring Boot v 2.1.2.RELEASE
和 Cloud 版本Greenwich.RC2
。
期望字母或数字字符,但找到但找到
application.yml
spring:
application:
name: api-gateway
server:
port: 8010
eureka:
instance:
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 2
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
healthcheck:
enabled: true
lease:
duration: 5
logging:
level:
com.self.sprintboot.learning.apigateway: DEBUG
management:
endpoints:
web:
exposure:
exclude: *
base-path: /