Spring Roo - 自动更新

发布于 2024-11-08 03:12:36 字数 153 浏览 7 评论 0原文

我尝试过使用Roo。如果我使用 Roo 创建一个类,然后在 IDE 中修改它,Roo 会发现更改并更新所有方面等等。

但是如果我使用 IDE 创建一个类,Roo 根本不会发现新创建的类:-(

是否有一个必须执行的命令,我是否遗漏了什么?

谢谢。

I've tried to use Roo. If I create a class using Roo and then modify it in the IDE, Roo finds the change and updates all aspects and so.

But If I create a class using IDE, Roo doesn't discover the newly created class at all :-(

Is there a command which has to be done, am I missing something?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不…忘初心 2024-11-15 03:12:36

Spring Roo 注释触发代码生成。

@RooEntity

实体方法,例如 persistfindById 等。

@RooJavaBean

生成修改器(getter/setter)。

@RooToString

生成 toString 方法。
GWT 脚手架查找 @RooEntity 类。

Spring Roo annotations triggers code generation.

@RooEntity

Entity methods like persist, findById etc.

@RooJavaBean

Generates mutators (getter/setters).

@RooToString

Generates toString method.
GWT scaffolding looks for @RooEntity classes.

掀纱窥君容 2024-11-15 03:12:36

有时,您必须等待一段时间,直到文件系统观察程序识别出新类。

刷新 IDE 可能会解决问题。如果您使用 eclipse,请使用带有 Roo 附加组件的 STS —— 这可以非常快地检测更改。

Sometimes, you have to wait a while till the file system watcher identifies a new class.

A refresh in the IDE might do the trick. If you are using eclipse, use STS with Roo add-on -- which is quite fast in detecting the changes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文