支持传统web开发

This commit is contained in:
tanghc
2019-10-08 15:44:28 +08:00
parent d85a09ef11
commit ae40a868d2
16 changed files with 143 additions and 118 deletions

View File

@@ -38,7 +38,7 @@ public class RestServlet extends HttpServlet {
int index = url.indexOf(REST_PATH);
// 取/rest的后面部分
String path = url.substring(index + REST_PATH.length());
String method = RouteUtil.buildApiName(path);
String method = path;
String version = request.getParameter(ParamNames.VERSION_NAME);
if (version == null) {
version = defaultVersion;