Skip to content

Commit 40d0ae8

Browse files
committed
Fix context path display on start. Fixes #11277
1 parent 770cca2 commit 40d0ae8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

grails-core/src/main/groovy/grails/boot/GrailsApp.groovy

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,7 @@ class GrailsApp extends SpringApplication {
404404
this,
405405
StringUtils.EMPTY_STRING_ARRAY, (ConfigurableApplicationContext)applicationContext.getParent())
406406
)
407-
String context_path = app.config.getProperty('server.context-path', '')
408-
if(context_path){
409-
println("WARNING: 'server.context-path: ${context_path}' is deprecated. Please use 'server.contextPath: ${context_path}'")
410-
} else {
411-
context_path=''
412-
}
413-
// in spring-boot context-path is chosen before contextPath ...
414-
String contextPath = context_path?context_path:app.config.getProperty('server.contextPath', '')
407+
String contextPath = app.config.getProperty('server.servlet.context-path', '')
415408
String hostName = app.config.getProperty('server.address', 'localhost')
416409
int port
417410
if (applicationContext instanceof WebServerApplicationContext) {

0 commit comments

Comments
 (0)