Java Tech

如无必要,勿增实体

标签 "接口测试" 下的文章

SpringMVC接口测试异常:Can not deserialize instance of int out of START_OBJECT token

  之前使用springmvc搭建了restful风格的接口服务,在使用mockmvc进行集成测试的时候出现了异常:Can not deserialize instance of int out of START_OBJECT token。为什么会出现这个问题?怎么解决这个问题呢?接下来本文详细分析讲解这个问题。