Hi, I am using spring boot actuator in an application. While I was trying to hit an endpoint, http://localhost:8080/actuator/env -POST it is giving method not allowed exception.

Below is the curl

POST /actuator/env HTTP/1.1 Host: localhost:8080 Content-Type: application/vnd.spring-boot.actuator.v2+json User-Agent: PostmanRuntime/7.19.0 Accept: / Cache-Control: no-cache Host: localhost:8080 Accept-Encoding: gzip, deflate Content-Length: 85 Connection: keep-alive cache-control: no-cache

{ "name": "spring.jpa.properties.hibernate.generate_statistics", "value": "true" }

The properties added are

management.endpoints.web.exposure.include=* management.endpoint.loggers.enabled=true

Comment From: scottfrederick

Spring Boot does not support POSTing to /actuator/env. Spring Cloud provides this ability.

Please post any follow-up questions to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.