Eliminate repeated code with HttpServletRequestWrapper in mvc-annotation-commons.#776
Eliminate repeated code with HttpServletRequestWrapper in mvc-annotation-commons.#776wu-sheng merged 6 commits intoapache:mainapache/skywalking-java:mainfrom
Conversation
You are not using the upstream code style. Please import them and fix the issue. |
|
@jiangyunpeng Could you have this fix? |
|
ok, I have fixed it |
Eliminate repeated code with HttpServletRequestWrapper in mvc-annotation-commons.
There is a lot of duplicate code in the AbstractMethodInterceptor of mvc-annotation-commons, mainly due to the change in the package name of Servlet after JDK 17. This PR uses an HttpServletRequestWrapper to shield code differences, reduce duplicate code, and facilitate subsequent maintenance.
CHANGESlog.