码迷,mamicode.com
首页 > 编程语言 > 详细

spring boot 启用 actuator

时间:2017-08-13 11:08:08      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:group   inf   cli   frame   查看   client   health   desc   org   

    <dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-config-server</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-eureka</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.tmatesoft.svnkit</groupId>
			<artifactId>svnkit</artifactId>
			<version>1.8.14</version>
		</dependency>
	</dependencies>    

  一定要记得依赖spring-boot-starter-web包。我就是之前没有加载这个包导致监控查看的页面一直木有

  http://127.0.0.1:8081/health

{
  description: "Spring Cloud Eureka Discovery Client",
  status: "UP"
}

  http://127.0.0.1:8081/info

{}

  

 

spring boot 启用 actuator

标签:group   inf   cli   frame   查看   client   health   desc   org   

原文地址:http://www.cnblogs.com/song-wentao/p/7352498.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!