有这样的引导程序:
class BootStrap {
def init = { servletContext ->
def file = servletContext.getResource("ehcache.xml")
println "+++ ${file}"
}
def destroy = {
}
}
应用程序包含ehcache.xml
grails-app/conf 目录中的文件,但它打印
+++ 空
在引导期间。问题是什么?