spring cloud admin

注意:

客户端:

1.被监控的 spring 客户端 ,必须引入下边的 依赖 来开启一些管理功能

          <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
         <dependency>
            <groupId>org.jolokia</groupId>
            <artifactId>jolokia-core</artifactId>
        </dependency>

2.且须在配置文件加入一句,关闭安全验证:

management.security.enabled=false

3.配置日志 路径,才能在 admin上看到 被监控客户端的日志(application.properties)

logging.level.root=info
logging.path=logs/
logging.file=${spring.application.name}.log

猜你喜欢

转载自blog.csdn.net/feiteyizu/article/details/80384205