是否有与插件中的Bootstrap类相同的内容 [英] Is there an equivalent to the Bootstrap class in a Plugin
本文介绍了是否有与插件中的Bootstrap类相同的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
BootStrap.groovy默认从插件zip中排除,但您可以创建一个MyPluginBootStrap.groovy(名字无关紧要,不能成为BootStrap),并且将被打包并与应用程序的BootStrap一起运行。
Is there an a way to initialise some data in a Plugin. I am modulizing my code and it would be nice to have something like the bootstrap in the Plugin but I cannot find it. Nor can I find references using the Google.
解决方案
BootStrap.groovy is excluded by default from a plugin zip, but you can create a MyPluginBootStrap.groovy (name doesn't matter, just can't be BootStrap) and that'll be packaged and run along with the application's BootStrap.
这篇关于是否有与插件中的Bootstrap类相同的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文