Tag Archives: @ResponseBody Error

How to Solve @ResponseBody Error: 500 NoSuchMethodError

When learning @ResponseBody today, I reported 500:

Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 
org.springframework.util.MimeTypeUtils.tokenize(Ljava/lang/String;)Ljava/util/List;

Solution:

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.