1
:HTTPBuilder GET 폐쇄 매개 변수 반환 MissingMethodException이와 방법 코드 아래
def http = new HTTPBuilder('http://twitter.com/statuses/')
http.get(path: 'user_timeline.json',
query: [id:'httpbuilder', count:5]) { resp, json ->
println resp.status
json.each { // iterate over JSON 'status' object in the response:
println it.created_at
println ' ' + it.text
}
}
것은 왜 예외가? http://groovy.codehaus.org/modules/http-builder/doc/json.html에서 같은 코드를 사용하면 작동합니다.
저에게 잘 작동합니다. 모든 버전의 버전을 사용하고 있습니까? 또한 스택 추적/일부 컨텍스트가 유용합니다. –
내 IDE의 문제 일지 모르지만 Spring Tool Suite 2.6을 사용합니다. 예외 정보는 메소드를 찾을 수 없다는 것입니다. public Object get (Map args, Closure responseClosure) –
Xilang