Spring Cloud Configuration Server not working with local properties file

后端 未结 9 2199
渐次进展
渐次进展 2020-12-05 07:43

I have been playing around with the Spring Cloud project on github located here: https://github.com/spring-cloud/spring-cloud-config

However I have been running into

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 08:42

    I've had this issue on Mac when there is a space in a path to a file:

    spring.cloud.config.server.native.search-locations=file:///Users/.../Development/Folder with a space /prj
    

    Also pay attention that there are 3 slashes before Users:

    spring.cloud.config.server.native.search-locations=file:///Users/...
    

    or I use:

    spring.cloud.config.server.native.search-locations=file://${user.home}/Desktop
    

    The native property is:

    spring.profiles.active=native
    

提交回复
热议问题