使用 SpringSource 工具套件进行 ROO 注释
如何在 STS 项目中使用/启用 ROO 注释(我相信它正在使用 AspectJ?)?
例如,我想使用: @RooJavaBean 用于自动生成 getter/setter 方法。
(Maven也被“安装”在项目中)
How can I use/enable ROO annotations (I beleive it's using AspectJ?) inside a STS project?
For example, I want to use :
@RooJavaBean for generating the getter/setter methods automagically.
(Maven is also "installed" in the project)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要创建一个 Roo 项目,系统会自动为您处理这些注释。您可以通过 New Roo 项目向导来执行此操作:
You need to create a Roo project and these annotations are handled for you automatically. You can do this through the New Roo project wizard:
为此,您必须使用 ROO shell,然后按照提示进行操作。
例如,要创建带有 ROO 注释的 java bean:
You have to use the ROO shell for this and just follow the hints.
For example, to create a java bean with ROO annotations: