Skip to content

Commit

Permalink
add context-path property to eureka and consul metadata map
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Mar 6, 2021
1 parent 2b71b32 commit b2a7050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ eureka:
git-version: ${git.commit.id.describe:}
git-commit: ${git.commit.id.abbrev:}
git-branch: ${git.branch:}
context-path: ${server.servlet.context-path:}
<%_ } _%>
<%_ if (applicationType === 'gateway') { _%>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spring:
- git-version=${git.commit.id.describe:}
- git-commit=${git.commit.id.abbrev:}
- git-branch=${git.branch:}
- context-path=${server.servlet.context-path:}
host: localhost
port: 8500
<%_ } _%>
Expand All @@ -57,4 +58,4 @@ spring:
profile: dev # profile(s) of the property source
label: main # toggle to switch to a different version of the configuration as stored in git
# it can be set to any label, branch or commit of the configuration source Git repository
<%_ } _%>
<%_ } _%>

0 comments on commit b2a7050

Please sign in to comment.