0

I'm currently using spring-cloud-starter-openfeign with 1.4.4.RELEASE version.

I have annotated my main class with @EnableFeignClients and I have feign clients in multiple packages due to the structuring of the project.

So I tried adding basepackages attribute with multiple packages and I'm getting compile time error.

@EnableFeignClients(basePackages = {"com.abc.proj.services.api.client", "com.abc.pro.console.feign"})

Getting below error:

',' unexpected

  • 1
    Can you post the full exception stack trace or compiler error? There is nothing wrong with your `@EnableFeignClients`. – Karol Dowbecki Apr 05 '19 at 13:59
  • Got below error when I started my application. `unexpected token: com.company.project.services.api.client @ line 27, column 37. @EnableFeignClients(basePackages = {"com.company.project.services.api.client", "com.company.project.services.console.feign"})` – Sumanth Badadal Apr 06 '19 at 13:19
  • Post the `com.company.project.services.api.client` class that caused the problem, the definition with annotations is enough. – Karol Dowbecki Apr 06 '19 at 17:15

0 Answers0