标签:hand ret let get turn request and game handle
@Resource private RequestMappingHandlerMapping requestMappingHandlerMapping; @GetMapping({"getNextOpenTime","getNextOpenTime2"}) public ReturnDTO<NextOpenTimeBO> getNextOpenTime(String gameCode,HttpServletRequest request) { UrlPathHelper urlPathHelper = requestMappingHandlerMapping.getUrlPathHelper(); System.out.println(urlPathHelper.getRequestUri(request));///api/provide/getNextOpenTime2 System.out.println(urlPathHelper.getServletPath(request));//包含context-path路径 /lottery/api/provide/getNextOpenTime }
标签:hand ret let get turn request and game handle
原文地址:https://www.cnblogs.com/xufan/p/9082354.html