3
开发Grails插件时,可以使用watchedResources
或observe
属性将其配置为重新加载。从我阅读官方文档看来,前者会导致插件在文件更改时重新加载,而后者在插件更改时会重新加载,这是否正确?grails插件重新加载
举个例子,一个插件需要在Grails服务发生变化时重新加载自己,是否等价于?
def watchedResources = "file:./grails-app/services/*Service.groovy"
def observe = ["services"]
谢谢, 唐
链接断开。我认为这是一个更新的链接http://grails.github.io/grails-doc/2.5.4/guide/plugins.html#participatingInAutoReloadEvents(我对获得这个功能感兴趣!) – 2016-05-04 14:28:30