http请求处理流程优化.

This commit is contained in:
aoshiguchen
2022-07-26 22:44:39 +08:00
parent 67f86131fb
commit 2a069b62a3
5 changed files with 166 additions and 99 deletions
@@ -41,7 +41,10 @@ public class Test1Controller {
@GetMapping("hello")
public String hello() {
System.out.println("拿到参数 a = " + HttpContextHolder.getHttpRequestParser().getParameterForInteger("a"));
System.out.println("拿到参数 a = " + HttpContextHolder.getHttpRequestParser().getParameter("a"));
if ("aaa".equals(HttpContextHolder.getHttpRequestParser().getParameter("a"))) {
throw new RuntimeException("hhhh 异常了!");
}
return test1Service.hello();
}