How to get Grails application name within Config.groovy?

前端 未结 2 901
抹茶落季
抹茶落季 2021-02-04 11:33

I want to include the Grails application name in some of my configuration settings in grails-app/Config.groovy. I\'ve tried many ways without success. For example

2条回答
  •  悲&欢浪女
    2021-02-04 12:34

    try this:

    edu.appname1 = appName
    

    or if you want to use as part of a longer configuration parameter

    edu.appname1 = "something.$appName.else"
    

提交回复
热议问题