We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
类org.geektimes.web.mvc.FrontControllerServlet中initHandleMethods方法
org.geektimes.web.mvc.FrontControllerServlet
initHandleMethods
// 处理方法支持的 HTTP 方法集合 for (Method method : publicMethods) { Set<String> supportedHttpMethods = findSupportedHttpMethods(method); Path pathFromMethod = method.getAnnotation(Path.class); if (pathFromMethod != null) { requestPath += pathFromMethod.value(); } handleMethodInfoMapping.put(requestPath, new HandlerMethodInfo(requestPath, method, supportedHttpMethods)); }
错误代码:
requestPath += pathFromMethod.value();
直接修改requestPath,导致请求路径错误
The text was updated successfully, but these errors were encountered:
Feat:使一个Controller类中支持多个接口方法 #15
Sorry, something went wrong.
Merge pull request mercyblitz#14 from mercyblitz/master
0586f6d
Add Live Lesssons
Successfully merging a pull request may close this issue.
类
org.geektimes.web.mvc.FrontControllerServlet
中initHandleMethods
方法错误代码:
requestPath += pathFromMethod.value();
直接修改requestPath,导致请求路径错误
The text was updated successfully, but these errors were encountered: