让 Intellij IDEA 处理 GWT RequestFactory 注释
升级到 GWT 2.4.0 后,我希望(需要)启用注释处理 对于我的 RequestFactory 接口。在 Eclipse 中执行此操作的说明非常清楚,但我找不到Intellij IDEA对应的指令。
注释处理设置页面的字段Intellij 似乎需要一个“处理器 FQ 名称”,无论它是什么。那可能是什么?
Having upgraded to GWT 2.4.0, I want (need) to enable annotation processing for my RequestFactory interfaces. The instructions for doing that in Eclipse are clear enough, but I can't find the corresponding instructions for Intellij IDEA.
The fields of the annotation processing settings page in Intellij seem to require a 'Processor FQ Name', whatever that is. What might that be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事实证明,不必启用注释处理器。一旦我在类路径中拥有了所有正确的 JAR 文件(在本例中为 requestfactory-apt 和 requestfactory-server),并从类路径中删除了旧版本的 gwt-servlet.jar,并使 Intellij 的缓存无效,并删除了先前编译的文件我的项目的版本,并重新启动 Intellij,并将我的嘴放在正确的位置,注释处理器运行,即使我未选中“启用注释处理”。
It turns out that one does not have to enable the annotation processor. Once I had all of the right JAR files in the classpath (requestfactory-apt and requestfactory-server in this case), and removed an old version of gwt-servlet.jar from the classpath, and invalidated Intellij's caches, and removed previously-compiled versions of my project, and restarted Intellij, and held my mouth in just the right position, the annotation processor ran, even though I had 'Enable annotation processing' unchecked.
我假设“处理器 FQ 名称”是处理注释的类的完全限定类名(类名和包)。
I assume "Processor FQ Name" is a fully qualified class name (class name and package) to a class that processes annotations.
这里有一些 IntelliJ 的说明:
https://docs.google.com/document/d/1UASaSSrGFJOmRPC7NCeEqabSGoNmyEs4Ir-4H1y1a6g/edit?hl=en_US
处理器 FQ 名称应为:
com.google.web.bindery .requestfactory.apt.RfValidator
There are some instructions for IntelliJ here:
https://docs.google.com/document/d/1UASaSSrGFJOmRPC7NCeEqabSGoNmyEs4Ir-4H1y1a6g/edit?hl=en_US
The Processor FQ name should be:
com.google.web.bindery.requestfactory.apt.RfValidator