2 回答

TA貢獻1934條經驗 獲得超2個贊
您需要在配置服務器 application.properties 中包含“management.endpoints.web.exposure.include=bus-refresh”。之后,向該 URL localhost:8012/actuator發送GET請求,以查看可用于刷新配置更改的LINKS 。您將在下面看到 JSON
{
"_links": {
"self": {
"href": "http://localhost:8012/actuator",
"templated": false
},
"busrefresh-destinations": {
"href": "http://localhost:8012/actuator/busrefresh/{*destinations}",
"templated": true
},
"busrefresh": {
"href": "http://localhost:8012/actuator/busrefresh",
"templated": false
}
}
然后你可以發送一個POST到這個URL localhost:8012/actuator/busrefresh

TA貢獻1725條經驗 獲得超8個贊
您需要在配置服務器 application.properties 中包含“management.endpoints.web.exposure.include=bus-refresh”并點擊此 url
http://localhost:8980/actuator/bus-refresh
添加回答
舉報