Alice52 / project

This repository is muti language and tech integration project.
MIT License
0 stars 0 forks source link

[ec] feign cannot use spring context #110

Closed Alice52 closed 3 years ago

Alice52 commented 3 years ago
  1. I want to use placeholder in this annotation, but it will throw exception
@FeignClient(name = "EC-COUPON-SERVICE", fallback = CouponFeignServiceHandler.class)
  1. error log
java.lang.IllegalStateException: Service id not legal hostname (${service.COUPON_SERVICE})
    at org.springframework.util.Assert.state(Assert.java:73) ~[spring-core-5.2.4.RELEASE.jar:5.2.4.RELEASE]

this is cannot re-produce

Alice52 commented 3 years ago

more info

  1. @FeignClient(name =xx) xx cannot contain _