标签:auto 地址 vat handle on() stc eth autowired div
@Autowired private RequestMappingHandlerMapping handlerMapping; @Test public void getAllApi() { Map<RequestMappingInfo, HandlerMethod> map = this.handlerMapping.getHandlerMethods(); Set<RequestMappingInfo> set = map.keySet(); for (RequestMappingInfo info : set) { HandlerMethod handlerMethod = map.get(info); // springmvc的url地址,不包含项目名 PatternsRequestCondition patternsCondition = info.getPatternsCondition(); System.out.println(patternsCondition); } System.out.println(111); }
标签:auto 地址 vat handle on() stc eth autowired div
原文地址:https://www.cnblogs.com/wulm/p/10120673.html