프로그래밍/Spring

[Spring Boot] Spring boot Actuator

AkaGeun 2016. 8. 21. 00:15

1. Actuator란

어플리케이션의 health check를 손쉽게 할 수 있는 Spring boot 자원이다.


2. pom.xml 에 추가

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-actuator</artifactId>

</dependency>


3. Endpoints

Reference


4. run


5. 기타

  1) App info(application.properties에 위 소스 추가)

info.app.name=Sample

info.app.description=Spring Boot Start Sample 

info.app.version=1.0.0-snapshot


  - 실행화면 


  2) Custom Endpoint(application.properties에 위 소스 추가)

management.context-path=/monitor



  3) 실행화면