看起来只有grails.serverURL和grails.path被认为是环境配置项。bla和foo被忽略了,无法在应用程序中使用。 有人可以解决这个问题,并提供一种方法来使bla和foo在每个环境中配置吗?
environments {
production {
grails.serverURL = "http://alpha.foo.de"
grails.path = ""
bla = "text"
foo= "word"
}
test {
grails.serverURL = "http://test.foo.de"
grails.path = ""
bla = "othertext"
foo= "otherword"
}
}