没有(没有处理
HttpServletResponse)的好方法。您可以执行以下 *** 作:
@RequestMapping("/search/**") public Map searchWithSearchTerm(HttpServletRequest request) { // Don't repeat a pattern String pattern = (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE); String searchTerm = new AntPathMatcher().extractPathWithinPattern(pattern, request.getServletPath()); ...}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)