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.
Similar Posts:
- java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
- [Solved] SpringBoot Access Redis Error: java.lang.NoSuchMethodError: redis.clients.jedis.JedisPoolConfig.setMinEvictableIdleTime
- [Ljava.lang.String; cannot be cast to java.lang.String [How to Solve]
- Exception resolution: java.lang.IllegalStateException: Failed to introspect Class
- [Solved] Handler dispatch failed; nested exception is java.lang.AbstractMethodError: com.shiku.im.dao.impl.FriendsDaoImpl.queryFriendsByName(ILjava/lang/String;)Ljava/util/List
- [Solved] Eclipse Error: java.lang.ClassNotFoundException: ContextLoaderListener
- SpringMVC Error: Cannot resolve org.springframework:spring-webmvc:5.2.9.RELEASE
- export ‘default’ (imported as ‘mod’) was not found in ‘-!../../../../node_module .vue?vue&type=script&lang=ts&’ (possible exports: __esModule)
- Hive Start Error: Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgumen
- [Solved] Jedis:Exception in thread “main” java.lang.VerifyError: Bad type on operand stack