![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常见错误
Heisenberg__
这个作者很懒,什么都没留下…
展开
-
自定义HttpMessageConverters导致int转换为string
自定义HttpMessageConverters导致int转换为string原因解决方法原因使用com.alibaba.fastjson.serializer.SerializerFeature配置了一些SerializerFeature,其中包含SerializerFeature.WriteNonStringValueAsString,此项配置导致响应数据中int类型配转换为string,导致接口报错。解决方法com.alibaba.fastjson.support.config.FastJson原创 2021-01-08 18:07:16 · 389 阅读 · 0 评论 -
使用@RequestBody注解接受json参数 报"HTTP Status 415 – 不支持的媒体类型"错误
@[TOC] 使用@RequestBody注解接受json参数 报"HTTP Status 415 – 不支持的媒体类型"错误问题:使用@RequestBody注解接受json参数 报"HTTP Status 415 – 不支持的媒体类型"错误原因:springmvc.xml配置文件中未开启 <mvc:annotation-driven/>...原创 2019-11-12 15:48:33 · 773 阅读 · 1 评论 -
IDEA启动main方法报错:java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
IDEA启动main方法报错:java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest使用IDEA运行main方法时报错:A JNI error has occurred, please check your installation and try again Exception in thread "main",...原创 2019-11-05 14:38:00 · 3341 阅读 · 1 评论