File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
grails-core/src/main/groovy/grails/boot Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11package grails.boot
22
33import grails.boot.config.tools.SettingsFile
4+ import grails.config.Config
5+ import grails.core.GrailsApplication
46import grails.plugins.GrailsPlugin
57import grails.plugins.GrailsPluginManager
68import grails.util.BuildSettings
@@ -217,7 +219,9 @@ class GrailsApp extends SpringApplication {
217219 protected printRunStatus (ConfigurableApplicationContext applicationContext ) {
218220 try {
219221 def protocol = System . getProperty(' server.ssl.key-store' ) ? ' https' : ' http'
220- println (" Grails application running at ${ protocol} ://localhost:${ applicationContext.embeddedServletContainer.port} " )
222+ GrailsApplication app = applicationContext. getBean(GrailsApplication )
223+ def contextPath = app. config. getProperty(' server.context-path' , ' ' )
224+ println (" Grails application running at ${ protocol} ://localhost:${ applicationContext.embeddedServletContainer.port}${ contextPath} " )
221225 } catch (e) {
222226 // ignore
223227 }
You can’t perform that action at this time.
0 commit comments