是否有与插件中的Bootstrap类相同的内容 [英] Is there an equivalent to the Bootstrap class in a Plugin

查看:128
本文介绍了是否有与插件中的Bootstrap类相同的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来初始化插件中的一些数据。我正在调整我的代码,并且很高兴在插件中拥有类似引导程序的内容,但我无法找到它。我也无法使用Google查找引用。

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆