Spring Boot Actuator
What is?
- 애플리케이션의 내부를 볼 수 있게 해줌
- 모니터링 시스템
dependencies
implementation 'org.springframework.boot:spring-boot-starter-actuator'
설정하기
# actuator
management.endpoints.web.exposure.include=*
endpoints
- beans: 등록된 빈을 출력
- env: Environment 정보를 출력
- info: 정보를 출력
- metrics: 매트릭 정보를 보여줌
- mappings: 모든 매핑정보를 보여줌
주의사항
- 보안을 꼭 설정해야한다.
- 경우에 따라서는 노출하는 endpoints를 줄이자
HAL Explorer
dependencies
implementation 'org.springframework.data:spring-data-rest-hal-explorer'
사용하기