I want to achieve this configuration, or are there any other solutions?

server-map:
  push-sever:
    name: http://xxxx
    url: http:///
    use-name: true
 @ReactiveFeginClient(value="${${server-map.push-sever.use-name}?${server-map.push-sever.name}:''}",
url="${${server-map.push-sever.use-name}?${server-map.push-sever.url}:''}")

I tried to configure the ternary expression of SpEL, but it seems that it cannot be configured properly. It reads the entire parameter and turns it into a string like "true?http://xxxxx:''", and cannot be executed properly.

0

There are 0 answers