Try it. I had the same problem and solved.
First enable debugging mode in your application (in your properties file: logging.level. = DEBUG. This is just to make the problem the same as mine. Or you may have some kind of hint about where it might go wrong.) Then run the application and look through the logs. The log displays the configured server URI, and the URL displays all the resources of the resource. Compare both URLs — the one in the log and your configuration server URI.
The problem is that, by mistake, the URL specified in the properties file may contain empty spaces at the end. (This can happen when you copy the past from somewhere) Example:
value for spring.cloud.config.uri = http: localhost: <port> <additional empty space>
, localhost:/20 %20%/< > /< >
. !