When I issue the following:
curl localhost:8080/actuator/env -d'{"name":"test",value:"hello world!"}' -H "Content-type: application/json"
I get:
{"timestamp":"2020-03-09T16:21:18.245+0000","status":405,"error":"Method Not Allowed","message":"Request method 'POST' not supported","path":"/actuator/env
My application.yml file exposes the endpoint and I can issue a GET request without any issue:
management:
endpoints:
web:
exposure:
include: "*"
I do not have Spring Security enabled. How can I enable submission of POST requests to Spring Actuator endpoints? I'm using Spring Boot 2.2.5.