开发者

Grails: Get context path in BootStrap.groovy

How can I get the context path in the BootStrap.groovy file of a Grails a开发者_如何学Gopplication?


Can't you do:

class BootStrap {
  def init = { servletContext ->
    println "$servletContext.contextPath"
  }
  def destroy = {
  }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜