feat: 健康检查 step 2
原因
健康检查
修改
健康检查
This commit is contained in:
parent
2c2b0dafb0
commit
0b656f25ae
@ -191,9 +191,7 @@ public class DefaultWebMvcConfig extends DelegatingWebMvcConfiguration implement
|
||||
super.addInterceptors(registry);
|
||||
|
||||
if (null != handlerInterceptors) {
|
||||
Arrays.stream(handlerInterceptors).forEach(e -> {
|
||||
registry.addInterceptor(e);
|
||||
});
|
||||
Arrays.stream(handlerInterceptors).forEach(registry::addInterceptor);
|
||||
}
|
||||
registry.addInterceptor(new AxContextInterceptor(appRuntime, debugHost));
|
||||
}
|
||||
@ -236,6 +234,8 @@ public class DefaultWebMvcConfig extends DelegatingWebMvcConfiguration implement
|
||||
//添加一个空的根实现. 避免爬虫访问到根路径后一直打印PageNotFound. 项目中可以覆盖 / 根路径的实现
|
||||
registry.addStatusController("/", HttpStatus.NO_CONTENT);
|
||||
registry.addStatusController("/favicon.ico", HttpStatus.NO_CONTENT);
|
||||
//这里必须添加一个映射配合CheckDeathInterceptor使用, 否则会出现NoMapping
|
||||
registry.addStatusController("/checkDeath", HttpStatus.NO_CONTENT);
|
||||
super.addViewControllers(registry);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user