In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this article, the editor introduces "how to build a Ribbon program" in detail, the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to build a Ribbon program" can help you solve your doubts.
Previously, when you built the first Ribbon in eclipse alone, you only needed to add the following dependencies:
Com.netflix.ribbon ribbon 2.2.2 com.netflix.ribbon ribbon-httpclient 2.2.2
However, if the above dependency is built using the Maven command alone on the command line or in IDEA, an exception will be thrown with the following information:
[ERROR] symbol: variable ConfigurationManager [ERROR] location: class org.crazyit.cloud.TestPingUrlConfig [ERROR] / D:/s_book/Spring Cloud/codes/04/4.2/first-ribbon-client/src/main/java/org/crazyit/cloud/TestPingUrlConfig.java: [19Power17] symbol not found [ERROR] symbol: variable ConfigurationManager [ERROR] location: class org.crazyit.cloud.TestPingUrlConfig [ERROR] / D : / s_book/Spring Cloud/codes/04/4.2/first-ribbon-client/src/main/java/org/crazyit/cloud/TestPingUrlConfig.java: [23 ERROR 17] No symbol [ERROR] symbol: variable ConfigurationManager [ERROR] location: class org.crazyit.cloud.TestPingUrlConfig [ERROR] / D:/s_book/Spring Cloud/codes/04/4.2/first-ribbon-client/src/main/java/org/crazyit/cloud/TestRestClient Java: [14jue 17] cannot find the symbol [ERROR] symbol: variable ConfigurationManager [ERROR] location: class org.crazyit.cloud.TestRestClient [ERROR] / D:/s_book/Spring Cloud/codes/04/4.2/first-ribbon-client/src/main/java/org/crazyit/cloud/TestRestClient.java: [25pied 49] cannot access com.google.common.reflect.ypeToken [error] cannot find com.google.common.reflect. The class file [ERROR] / D:/s_book/Spring Cloud/codes/04/4.2/first-ribbon-client/src/main/java/org/crazyit/cloud/MyPingTest.java of TypeToken cannot find the symbol [ERROR] symbol: variable ConfigurationManager
For the solution, use eclispe or modify pom.xml. The modified pom.xml content is as follows:
Com.netflix.ribbon ribbon-core 2.2.2 com.netflix.ribbon ribbon-loadbalancer 2.2.2 com.netflix.archaius archaius-core 0.7.5 commons-configuration commons-configuration 1.9 com.netflix.ribbon ribbon-httpclient 2.2.2 com.google.guava guava 18.0
I don't know the reason for this at the moment. I guess there is something wrong with eclipse's Maven plug-in, which automatically introduces a lot of dependencies.
Read here, this "how to build Ribbon program" article has been introduced, want to master the knowledge of this article also need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.