我正在使用Spring Boot和Redis,并且在部署到环境后,我在对 / status URL的未经授权的请求的日志中看到许多请求(每秒数次)。 这种情况不在本地复制。 如何找到配置此行为的要点?什么是“ X-Application-Context ”:“ api-name:redis:8080”?
检查了应用程序的 / trace ,我看到了:
{
"timestamp": 1557763247655,
"info": {
"method": "GET",
"path": "/i18napi/status",
"headers": {
"request": {
"Host": "localhost:8080"
},
"response": {
"X-Frame-Options": "DENY",
"Transfer-Encoding": "chunked",
"Cache-Control": "no-cache, no-store, max-age=0, must-revalidate",
"X-Content-Type-Options": "nosniff",
"Connection": "keep-alive",
"X-XSS-Protection": "1; mode=block",
"X-Application-Context": "api-name:redis:8080",
"Date": "Mon, 13 May 2019 16:00:47 GMT",
"Content-Type": "application/json;charset=UTF-8",
"status": "200"
}
}
}
},
UPD :这不是来自Redis的请求,它是环境健康检查(来自Rancher),并且我只是禁用了 / status 控制器的日志记录。>