Skip to content

Commit 422d1cd

Browse files
Fix the updated Spring Boot 2.0 property name for the servlet context path in the API
Originally reported on StackOverflow at https://stackoverflow.com/questions/55749750/broadleaf-running-locally-problem-getting-started-the-api-project
1 parent a2f0c00 commit 422d1cd

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

admin/src/main/resources/runtime-properties/common.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ admin.search.string.onlyStartsWith=false
1414
stale.state.protection.enabled=true
1515

1616
#disable Spring Boot default resource handling for Admin due to catch-all nature of AdminBasicEntityController
17-
spring.resources.add-mappings=false
17+
spring.resources.add-mappings=false
18+
19+
server.servlet.contextPath=/admin

admin/src/main/resources/runtime-properties/default.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ blEventPU.hibernate.hbm2ddl.auto=create
1313
jmx.app.name=admin
1414
http.server.port=8081
1515
server.port=8444
16-
server.servlet.contextPath=/admin
1716
server.ssl.key-store = classpath:blc-example.keystore
1817
server.ssl.key-store-password = broadleaf
1918
server.ssl.key-password = broadleaf

api/src/main/resources/runtime-properties/common.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ web.maxPageSize=100
88
#Enable International Message Resolution
99
international.message.resolution.enabled=true
1010

11-
server.servletPath=/api/v1
11+
server.servlet.contextPath=/api/v1

api/src/main/resources/runtime-properties/default.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ blEventPU.hibernate.hbm2ddl.auto=create
1212
jmx.app.name=api
1313
http.server.port=8082
1414
server.port=8445
15-
server.servlet.contextPath=/
1615
server.ssl.key-store = classpath:blc-example.keystore
1716
server.ssl.key-store-password = broadleaf
18-
server.ssl.key-password = broadleaf
17+
server.ssl.key-password = broadleaf

site/src/main/resources/runtime-properties/common.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ web.maxPageSize=100
1010
#Enable International Message Resolution
1111
international.message.resolution.enabled=true
1212

13-
thymeleaf.useLayoutDialect=true
13+
thymeleaf.useLayoutDialect=true
14+
15+
server.servlet.contextPath=/

site/src/main/resources/runtime-properties/default.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ blEventPU.hibernate.hbm2ddl.auto=create
1212
jmx.app.name=site
1313
http.server.port=8080
1414
server.port=8443
15-
server.servlet.contextPath=/
1615
server.ssl.key-store = classpath:blc-example.keystore
1716
server.ssl.key-store-password = broadleaf
1817
server.ssl.key-password = broadleaf

0 commit comments

Comments
 (0)