How to Solve @ResponseBody Error: 500 NoSuchMethodError

When learning @ResponseBody today, I reported 500:

Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 


Delete the spring context package.

The reason for this error may be that the spring context and spring MVC packages are imported at the same time, and the modules dependent on the two jar packages conflict.

Similar Posts: