grails2.4.4 및 grails-rest-client-builder : 2.0.0 플러그인을 사용하고 있습니다. 요청 메소드 인 PATCH를 허용하는 REST URL을 호출해야합니다. 그러나 나는이 플러그인 할 수 아니에요 : 내가 코드 아래 사용하고 있습니다 :PATCH 요청 메소드가있는 Grails 'grails-rest-client-builder'플러그인
def rest = new RestBuilder()
def resp = rest.patch("$URL") {
header 'Authorization', "Bearer $accessToken"
}
나는 오류가 아래에 받고 있어요 :
Invalid HTTP method: PATCH. Stacktrace follows:
Message: Invalid HTTP method: PATCH
Line | Method
440 | setRequestMethod in java.net.HttpURLConnection
307 | invokeRestTemplate in grails.plugins.rest.client.RestBuilder
280 | doRequestInternal . in ''
사람이 나 좀 도와 주시겠습니까?