Closed deepakThedeveloper closed 4 years ago
What version? Are you trying to post a body?
spring cloud version? its 2.2.1 and actuator version is 2.2.4. Spring boot version is 2.2.4. Nope I am not trying to post any body. I am just giving a post call to url http://localhost:8012/actuator/bus-refresh
Hello Sir, can you please provide any solution for this?
Hi,
This is the same issue happened to me. I posted a question on stackoverflow here.
Please help if there's something wrong or any resolution.
Dependencies:
spring-cloud-config-server spring-cloud-starter-bus-amqp spring-boot-starter-actuator
Versions: Boot: 2.2.5.RELEASE Cloud: Hoxton.SR3
/bus-refresh does not support post.
@spencergibb /bus-refresh does not support post. I can not beleive it.
I used the following dependency :
I am trying to execute POST request on /actuator/bus-refresh url of spring-cloud and I am getting 405 as response status code with error message as Method Not Allowed.
Below is my application.properties file of config server spring.application.name = config-server-service server.port = 8012
spring.cloud.config.server.git.uri = spring.cloud.config.server.git.username = spring.cloud.config.server.git.password = *** spring.cloud.config.server.git.clone-on-startup = true
management.endpoints.web.exposure.include = bus-refresh
spring.rabbitmq.host = localhost spring.rabbitmq.port = 5672 spring.rabbitmq.username = guest spring.rabbitmq.password = guest
Below dependencies are added in pom.xml of config server
Spring-boot-version that I am using is 2.2.4.RELEASE