Spring Roo - 自动更新
我尝试过使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Spring Roo 注释触发代码生成。
实体方法,例如
persist
、findById
等。生成修改器(getter/setter)。
生成
toString
方法。GWT 脚手架查找
@RooEntity
类。Spring Roo annotations triggers code generation.
Entity methods like
persist
,findById
etc.Generates mutators (getter/setters).
Generates
toString
method.GWT scaffolding looks for
@RooEntity
classes.有时,您必须等待一段时间,直到文件系统观察程序识别出新类。
刷新 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.