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:
- Resource interpreted as Stylesheet but transferred with MIME type text/html: css not work
- The interface method is not rewritten, and the idea does not report an error.
- How to Solve Error: Preflight response is not successful
- Error: there is already ‘RtController’ bean method [How to Solve]
- invalid conversion from ‘void* (*)()’ to ‘void* (*)(void*)’
- SpringMvc Error:java.lang.IllegalStateException
- Nginx Timeout Error: upstream timed out (110: Connection timed out) while reading response header from ups…
- [Solved] org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part ‘file_data’ is not present
- JavaWeb HttpServletRequest (How to Get Line, Header and Body)
- [Solved] JpaRepository Error: Paging query needs to have a Pageable parameter! Offending method public abstract