Error: Failed to start component [How to Solve]

Error message: caused by: failed to start component

Start to check whether the configured URL pattern is wrong, including using annotation, but it still reports an error and fails to start

Finally, I read the error report diary carefully and found that: caused by: java.lang.noclassdeffounderror: COM/sun/deploy/net/httprequest

Error reporting reason:

Solution: change the receiving parameter type

public void findAll(HttpServletRequest request, HttpServletResponse response){...}

This bug has been tangled for a long time. Record the PS receiving parameter type. It’s inexplicable. You need to read the source code to fully understand it

Similar Posts: