Skip to content

Instantly share code, notes, and snippets.

@benelog
Last active Apr 18, 2019
Embed
What would you like to do?
RestTemplate 활용
private fun getResponse(disqusOauthUrl: String): ResponseEntity<String> {
val endpoint = URI.create(disqusOauthUrl)
val req = RequestEntity<Any>(HttpMethod.GET, endpoint)
val resType = object : ParameterizedTypeReference<String>() {}
return RestTemplate().exchange<String>(req, resType)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment