diff --git a/generators/server/templates/src/main/resources/config/application.yml.ejs b/generators/server/templates/src/main/resources/config/application.yml.ejs index b60d61cfa86..064f33a49ad 100644 --- a/generators/server/templates/src/main/resources/config/application.yml.ejs +++ b/generators/server/templates/src/main/resources/config/application.yml.ejs @@ -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') { _%> diff --git a/generators/server/templates/src/main/resources/config/bootstrap.yml.ejs b/generators/server/templates/src/main/resources/config/bootstrap.yml.ejs index d0548acda9f..9092b1bfbe4 100644 --- a/generators/server/templates/src/main/resources/config/bootstrap.yml.ejs +++ b/generators/server/templates/src/main/resources/config/bootstrap.yml.ejs @@ -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 <%_ } _%> @@ -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 - <%_ } _%> \ No newline at end of file + <%_ } _%>