Когда я выдаю следующее:
curl localhost:8080/actuator/env -d'{"name":"test",value:"hello world!"}' -H "Content-type: application/json"
Я получаю:
{"timestamp":"2020-03-09T16:21:18.245+0000","status":405,"error":"Method Not Allowed","message":"Request method 'POST' not supported","path":"/actuator/env
Мой файл application.yml предоставляет конечную точку, и я могу без проблем выполнить запрос GET:
management:
endpoints:
web:
exposure:
include: "*"
У меня нет с включенной Spring Security. Как включить отправку запросов POST на конечные точки Spring Actuator? Я использую Spring Boot 2.2.5.