http补丁请求:处理程序处理失败

时间:2016-09-04 05:53:26

标签: java spring-mvc

我的REST控制器中有以下方法:

import java.util.Arrays   
.
...

numO1.setText(Arrays.toString(Isortarray[0]));
numO2.setText(Arrays.toString(Isortarray[1]));
numO3.setText(Arrays.toString(Isortarray[2]));
numO4.setText(Arrays.toString(Isortarray[3]));
numO5.setText(Arrays.toString(Isortarray[4]));
numO6.setText(Arrays.toString(Isortarray[5]));

当我发送补丁请求时,它抱怨:

@RequestMapping(path="/client/{id}/update",method=RequestMethod.PATCH)
    public ResponseEntity<Client> updateClient(@PathVariable Long id,
                                                @RequestParam(name="firstname") String firstname){

    bla..bla..bla   
    }

它甚至没有进入方法。 当我删除Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/http/HttpMethod . . . Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/http/HttpMethod 时效果很好,但是当我添加它时,会出现错误。有什么问题?

1 个答案:

答案 0 :(得分:0)

检查您的http客户端jar是否具有dependancies(交叉检查版本)