针对http请求前置处理优化

This commit is contained in:
aoshiguchen
2022-07-22 22:14:45 +08:00
parent 0f6aae5f1c
commit 7d8f7d1480
@@ -25,6 +25,7 @@ import fun.asgc.neutrino.core.annotation.Autowired;
import fun.asgc.neutrino.core.web.annotation.GetMapping;
import fun.asgc.neutrino.core.web.annotation.RequestMapping;
import fun.asgc.neutrino.core.web.annotation.RestController;
import fun.asgc.neutrino.core.web.param.HttpContextHolder;
import fun.asgc.neutrino.proxy.server.service.Test1Service;
/**
@@ -40,6 +41,7 @@ public class Test1Controller {
@GetMapping("hello")
public String hello() {
System.out.println("拿到参数 a = " + HttpContextHolder.getHttpRequestParser().getParameterForInteger("a"));
return test1Service.hello();
}