1. Actuator란
어플리케이션의 health check를 손쉽게 할 수 있는 Spring boot 자원이다.
2. pom.xml 에 추가
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
3. Endpoints
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) 실행화면
'프로그래밍 > Spring' 카테고리의 다른 글
[Spring Batch] 1. 알아보자 (0) | 2018.04.12 |
---|---|
[SPRING BOOT TIP] 3. BANNER.txt 를 이쁘게 만들어 보자 (0) | 2018.04.02 |
[Spring Boot] H2, JPA로 Rest API 만들기 (0) | 2017.03.31 |
[Spring Boot] Devtools 사용하기 (0) | 2017.03.17 |
[Spring Boot] Spring Boot file upload example (0) | 2016.08.22 |