首页 > 编程语言 > 详细

spring boot 添加监控

时间:2018-09-27 19:44:21      阅读:136      评论:0      收藏:0      [点我收藏+]
在application.properties中,添加
        spring.application.name=Spring Boot Admin Web
        spring.boot.admin.url=http://localhost:${server.port}
        spring.jackson.serialization.indent_output=true
        endpoints.health.sensitive=false
        management.security.enabled=false
        ribbon.ReadTimeout=60000
        ribbon.ConnectTimeout=60000

在 启动类中添加

            @EnableAdminServer

在 pom.xml中添加

                <dependency>
                                    <groupId>de.codecentric</groupId>
                                    <artifactId>spring-boot-admin-server</artifactId>
                                    <version>1.5.7</version>
            </dependency>

            <dependency>
                <groupId>de.codecentric</groupId>
                <artifactId>spring-boot-admin-server-ui</artifactId>
                <version>1.5.7</version>
            </dependency>

            <dependency>
                <groupId>de.codecentric</groupId>
                <artifactId>spring-boot-admin-starter-client</artifactId>
                <version>1.5.7</version>
            </dependency>

spring boot 添加监控

原文:http://blog.51cto.com/6612493/2286807

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!