
--destination 옵션은 Spring Boot의 Actuator 기능에서 사용되는 옵션입니다. Actuator는 Spring Boot 애플리케이션의 내부 정보를 노출하는 기능입니다.
REST API를 만들 때 --destination 옵션은 URL이나 URI에 영향을 미치지 않습니다. 대신, Actuator 기능을 사용하여 내부 정보를 노출할 때 사용됩니다.
--destination 옵션은 Actuator 기능의 내부 경로를 지정하는 데 사용됩니다. 예를 들어, /actuator/health 경로에 대한 요청을 처리할 때 --destination 옵션을 사용하여 내부 경로를 지정할 수 있습니다.
--destination 옵션을 사용해야 하는 이유는 Actuator 기능을 사용하여 내부 정보를 노출할 때 내부 경로를 지정해야 하기 때문입니다. 이 옵션을 사용하지 않으면 Actuator 기능이 내부 경로를 자동으로 지정하려고 시도할 수 있습니다.
--destination 옵션의 예를 들어보겠습니다.
#hostingforum.kr
properties
management.endpoints.web.exposure.include=health
management.endpoint.health.show-details=always
management.endpoint.health.destination=/actuator/health
이 예제에서는 --destination 옵션을 사용하여 Actuator 기능의 내부 경로를 /actuator/health로 지정했습니다. 이 옵션을 사용하지 않으면 Actuator 기능이 내부 경로를 자동으로 지정하려고 시도할 것입니다.
2025-08-10 12:40