We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f15a95 commit 71e67fdCopy full SHA for 71e67fd
spring-servlet-blocking/src/main/kotlin/com/github/neherim/servlet/blocking/Application.kt
@@ -49,7 +49,7 @@ class FeedController(@Value("\${service.twitter.url}")
49
// One requests to external service
50
@GetMapping("/tweet")
51
fun tweet(): Feed {
52
- val tweet = restTemplate.getForObject<Tweet>(twitterUrl + "/tweet")!!
+ val tweet = restTemplate.getForObject<Tweet>(twitterUrl)!!
53
return Feed(tweet.text)
54
}
55
0 commit comments