我通过 grails create-app 启动了一个 grails 应用程序。为了模块化,我觉得组件最好是一个插件。我可以将此应用程序转换为 grails 插件吗? 谢谢, 巴布。
最佳答案
我从未基于之前编写的应用程序创建过插件,但查看了 documentation for grails plugins您可以阅读以下声明:
The structure of a Grails plugin is exactly the same as a regular Grails project's directory structure, except that in the root of the plugin directory you will find a plugin Groovy file called the "plugin descriptor".
因此,我建议使用 grails create-plugin *your-plugin-name*
创建一个新插件,并将应用程序中的所有文件复制到该插件中。
关于grails - 将 Grails 应用程序转换为插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2581088/