The pit of Springcloud's feign

Source: Internet
Author: User

Today write feign of the demo when stepping on a big pit, feel spring-cloud everywhere is pit, these pits common reason is dependent on the version of the package problem!!!

It's really mad.

Eureka's configuration was a long time ago.

------------------------------------------------------------

The first is to add a no error, but run the time to throw a Nosuchemthod exception

Nosuch your sister.

Check the version of the problem, the result of a blind (and no recording process), resulting in the result is Servicefeignapplication.java inside the error

The reason for the error is that the @enablefeignclients annotation cannot be used and the corresponding package cannot be found

Really stuck for a long time! Because my pom is full of bread!!!!

Finally found the reason, or version of the problem: I am using Springboot version 2.0.3,springcloud version of Finchley.release

Workaround: Add the Spring-cloud-starter-openfeign dependency package to the Pom file

And then we can.

Damn it, it's blowing.

But still super like to solve the problem, do not feel bored, but feel very stimulating, hehe

The pit of Springcloud's feign

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.