Spring Roo 2 会支持 MongoDB 吗?

Will Spring Roo 2 support MongoDB?

根据Spring Roo 1.3 Docs,支持MongoDB,可配置为:

roo> mongo setup

但是使用 Spring Roo 2.0.0.RC1 你会得到:

roo> mongo setup
Command 'mongo setup' not found (for assistance press TAB or type "hint" then hit ENTER)
Searching 'mongo setup' on installed repositories
0 matches found with 'mongo setup' on installed repositories

MongoDB 持久层被移除了?可以通过某种方式添加吗?

this task 中,在 Spring Roo 2.0 定义期间,我们决定创建一个更小且更易于维护的 Spring Roo 发行版。

从 2.0 开始,Roo 将仅包含运行时和主要插件,因此可以更频繁地发布新版本并与最新的 Spring 项目保持同步。这为我们提供了在 Spring Roo 运行时和主要插件之间进行更好分离的可能性。 Roo 运行时 API(类路径、元数据、支持等)必须尽可能保持稳定和向后兼容。

另一方面,我们将未归类为“主要插件”的插件(GWT、JSF、Mongo DB ...)移至它们自己的 Git 存储库

https://github.com/spring-projects/spring-roo-community-addons

这些插件将由 Roo 社区维护。

从现在开始,我们将把这个插件称为“Spring Roo Community Addons”。

如您所见,这些插件没有迁移到 Spring Roo 2.x 版本,所以如果您想使用 Mongo DB 插件,您应该从那里下载并应用一些更新。应用更改后,生成 .jar 文件并使用 addon install 命令将它们包含在 Spring Roo shell.

希望对您有所帮助,