<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>먼저 사용을 위해 디펜던시를 추가 하자
여기서 모든 정보를 보고싶다면
yml 파일에
management:
  endpoints:
    web:
      exposure:
        include: "*"을 추가 하면
모든 api의 정보를 볼수 있다.
{ 
  "_links": { 
    "self": { 
      "href": "http://localhost:8088/actuator", 
      "templated": false 
    }, 
    "auditevents": { 
      "href": "http://localhost:8088/actuator/auditevents", 
      "templated": false 
    }, 
    "beans": { 
      "href": "http://localhost:8088/actuator/beans", 
      "templated": false 
    }, 
    "caches-cache": { 
      "href": "http://localhost:8088/actuator/caches/{cache}", 
      "templated": true 
    }, 
    "caches": { 
      "href": "http://localhost:8088/actuator/caches", 
      "templated": false 
    }, 
    "health-component-instance": { 
      "href": "http://localhost:8088/actuator/health/{component}/{instance}", 
      "templated": true 
    },
완료!
'Spring Boot > Restful-Api + Spring Boot' 카테고리의 다른 글
| 스프링 시큐리티를 이용한 회원가입 처리 (0) | 2022.06.18 | 
|---|---|
| 스프링부트 타임리프 벨리데이션 체크를 해보자 (0) | 2022.06.15 | 
| RestFul API 연습(9) Swagger 사용 (0) | 2022.06.04 | 
| RestFul API 연습(8) Rest api 구현을 위한 HATEOAS 적용 (0) | 2022.06.04 | 
| RestFul API 연습(7) 다국어 처리를 위한 Internationalization 구현 방법 (0) | 2022.06.03 |