How to get Grails application name within Config.groovy?
问题 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, if I have the following in my Config.groovy , edu.appname1 = "${grailsApplication.metadata.'app.name'}" edu.appname2 = "${application.metadata.'app.name'}" edu.appname3 = "${metadata.'app.name'}" edu.appname4 = "${app.name}" I can run these statements in the Grails console def edu = grailsApplication.config.edu println "${'''$