I want to implement the function of traffic replay. So i want to enhancer org.springframework.web.servlet.DispatcherServlet this class. And I have achieved the increase of bytecode using asm and javassist both ways.
When I went to test this function I found a problem. If the target project does not have asm or javassist dependencies, This enhanced function will not be triggered, and the added functions can be executed normally when I manually add their dependencies. Is this a normal result?