Spring boot Failed to find PropertySource: shortcut not found

I am trying to install Spring Cloud Config Server, but the service configuration server, it works on port 8888, which is correct, and the other service should work on port 18060, but because of the start, it allocates port 8080 for me and returns a warning "Could not be found PropertySource: label not found "what should I do? Thank!

+4
source share
1 answer

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%/< > /< >

. !

0

Source: https://habr.com/ru/post/1677314/


All Articles