springmvc 动态注册路由
springmvc 动态注册路由
引言
目标
方案
@Override
public void registerMapping(RequestMappingInfo mapping, Object handler, Method method) {
super.registerMapping(mapping, handler, method);
updateConsumesCondition(mapping, method);
} RequestMappingInfo.paths("/foo", "/bar").build()最后更新于