Regarding this error, I have previously recorded a troubleshooting article, which may not be clearly described: Could not find classNoopDiscoveryClientAutoConfiguration
Let’s re-describe this problem here. When the project is started, the following error will be reported:
The error log description is very clear and the target class cannot be found:NoopDiscoveryClientAutoConfiguration
First look at the dependency package corresponding to this target class.
The class is not found in the directory of the corresponding dependency package, but there must be a place in the project that references this class, so this error is reported. You can continue to search for the existence of this dependency package. (other versions of spring-cloud-commons).
Obviously, there is an error-reporting class in this low-version dependency, and you can see that the target class has a strikethrough and has been discarded. You can open this class to see the replaced class after discarding.
So just exclude dependencies that reference lower versions.