0

I added the feign dependency in the pomxml, and added the dependency manager accordingly. Why can I not add the @EnableFeignClients?

I tried to do what i described before, but i cannot figure out why it doesn't work. Please help.

  • What do you mean by saying it doesn't work? Your IDE don't suggest it in auto complete feature or you get compilation error? – meridbt Jun 27 '23 at 05:49

1 Answers1

0

Make sure that, you have used the correct dependency and update maven/pom.xml:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

It requires no more than this dependency (which includes @EnableFeignClients annotation) should be available.

You can use maven cli to update pom as well:

mvn clean install
ilkin
  • 99
  • 1
  • 2
  • 11