interceptor获取@PathVariable参数值

Map pathVariables = (Map) request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
String appId = (String)pathVariables.get("appId");

 

你可能感兴趣的:(springMVC,Interceptor,PathVariable)