access to application properties (${appName}) in external configuration

后端 未结 1 450
误落风尘
误落风尘 2021-01-05 02:34

I\'ve externalized my Grails configuration basically the same way as the config file suggests. I\'ve done it all the time with my 1.3 projects and the line

g         


        
相关标签:
1条回答
  • 2021-01-05 03:17

    You can use ${grails.util.Metadata.current.getApplicationName()} instead.

    Note that since Metadata implements Map you can't shorten that to ${grails.util.Metadata.current.applicationName} since the key isn't applicationName.

    0 讨论(0)
提交回复
热议问题