I have an error when starting SpringBootApplication:
Unexpected exception during bean creation; nested exception is java.lang.IllegalArgumentException: url values must be not be absolute.
I'm a beginner is SpringCloud, but I worked with Openshift (On first look it's basically the same things).
I have a cluster with GatewayApplication and some business microservices in it, wrote on Kotlin. Inside cluster microservices communicate by FeignClient without authentification. In consumer-service it looks like it:
@FeignClient(name = "producer-service")
@Headers("Content-Type: application/json")
interface MarketServiceFeign {
@GetMapping("https://somehost.ru/{id}/orders")
fun getUserDevices(
@PathVariable id: String,
): ResponseEntity<List<UserOrder>>
}
I tried find same case, but couldn't.
I tried to:
- use @RequestLine from feign-core, but it doesn't work with @FeignClient
- use feign.@Param for argument instead of org.springframework.web.bind.annotation.@PathVariable
- use url with http instead of https