Closed Jacky-LinPeng closed 5 years ago
POST the url: http://localhost:8888/actuator/bus-refresh
get response:
{ "timestamp": "2018-07-06T02:43:58.391+0000", "status": 415, "error": "Unsupported Media Type", "message": "Content type 'multipart/form-data;boundary=--------------------------153469588436788339830561;charset=UTF-8' not supported", "path": "/actuator/bus-refresh" }
get empety data
Found solution? I am also facing same problem
Can you retry with the latest versions? for boot 2.0.x, Finchley.SR2 and boot 2.1.x Greenwich.RELEASE?
@spencergibb i using Finchley.SR2, and same problem happend.
but no /bus/refresh, no /bus/env
@rcarlosdasilva the new endpoints are /actuator/bus-refresh
and /actuator/bus-env
.
none of that, just have /actuator/health, /actuator/info, /actuator
@spencergibb i want to know the diff between actuator and monitor. i consider monitor can do refresh and notify clients through bus without actuator too, right? and starter-config-server already include actuator, so there is no need to add it again
like:
<!--bus消息总线-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!--bus消息总线-->
<!--config设置监听 来接收发送来的post请求-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-monitor</artifactId>
</dependency>
monitor is not an actuator endpoint. It is a service that VCS webhooks can call to initiate a refresh via bus.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
I got the same issue and solved it by changing the spring cloud version. Initially i was using Greenwich.RELEASE when i change it to - > Greenwich.SR1 , issue is solved
properties content:
//============================================= pom.xml
========================================================
then I POST the url: http://localhost:8888/bus/refresh
I get this content: