bug.java.lang.ClassNotFoundException: com.netflix.discovery.AbstractDiscoveryClientOptionalArgs

Project scene:

When configuring the consumer mode of the SpringCloud project, I encountered a bug.
An error in Maven!

Problem Description:

Tip: An error will be reported during startup.
For example: java.lang.ClassNotFoundException: com.netflix.discovery.AbstractDiscoveryClientOptionalArgs

java.lang.ClassNotFoundException: com.netflix.discovery.AbstractDiscoveryClientOptionalArgs

Cause Analysis:

Tip: After careful observation, it is found that a path was imported incorrectly when configuring dependencies.


Insert picture description here
Then go to the Maven repository to find this path, which is a bit different!

Insert picture description here

solution:

Tip: After I changed the path to the correct one, no error was reported when running.
Insert picture description here

Guess you like

Origin blog.csdn.net/yang13676084606/article/details/110197303