There is a config server project with native profile.

spring:
  profiles: native
  cloud:
    config:
      server:
        native:
          searchLocations: /Users/user/MSProjects/tdf-cloud-platform/tdf-config-profile/dev

The problem is After clone the config server project from git, all the developers need to change the "searchLocations" property ,because different developers have different "searchLocations" . I think the real problem is the "searchLocations" is a Absolute path .

If I can use the relative path such as “searchLocations: "file:///../tdf-config-profile/dev"” , All the developers have the same relative path, they will not need to change the property.

Can I use the relative path? If not,How to reduce developers changing the property?

Comment From: hammadirshad

Pass search locations as command line argument

-Dspring.cloud.config.server.native.searchLocations=/Users/user/MSProjects/./dev

Comment From: spencergibb

or use a substitution with a default value

          searchLocations: ${user.search-location:/Users/user/MSProjects/tdf-cloud-platform/tdf-config-profile/dev}

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.