grails - 将 Grails 应用程序转换为插件

标签 grails plugins

我通过 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/

相关文章:

grails - java.lang.IllegalStateException:类[coconut.User]不是域类,或者

grails - 使用 Eclipse CloudFoundry 插件将 Grails 应用程序部署到 AppFog

Grails 查询数据库

java - 接收音频文件的插件

javascript - 在不同浏览器下检测已安装的插件?

javascript - 如何使用Grails捕获图像并从网络摄像头保存?

jquery - 优化 WordPress 网站中的 jQuery 和 CSS

c# - 在处理插件时,可以从组合根之外的 DI 容器解析吗?

C++ 与 Qt4 插件开发

date - Grails插入并在脚手架上显示错误的日期值