File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
grails-core/src/main/groovy/grails/boot Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments