按照优先级匹配也是第二个接口优先级较高一些, 比较好奇两个接口的执行顺序,
/**
* Look up the best-matching handler method for the current request.
* If multiple matches are found, the best match is selected.
* @
param lookupPath mapping lookup path within the current servlet mapping
* @
param request the current request
* @
return the best-matching handler method, or {@code null} if no match
* @
see #handleMatch(Object, String, HttpServletRequest)
* @
see #handleNoMatch(Set, String, HttpServletRequest)
*/
@
Nullable protected HandlerMethod lookupHandlerMethod(String lookupPath, HttpServletRequest request) throws Exception {
比较好奇楼主用的什么版本的 spirng ,可以看一下这个方法是否调用了