[英]Cannot configure IntelliJ Idea to use @Immutables annotations
I've followed the Immutables
tutorial to use those annotations on IntelliJ Idea
. 我已经按照Immutables
教程在IntelliJ Idea
上使用了这些注释。 For some reason the IDE is still showing the generated annotation classes as an error, though the maven
compilation is going forward normally. 由于某些原因,尽管maven
编译正常进行,但IDE仍将生成的注释类显示为错误。 Any idea how to fix this? 任何想法如何解决这个问题?
File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors 文件>设置>构建,执行,部署>编译器>注释处理器
Make sure this is enabled 确保已启用
最后,我通过执行Maven >> Generate Source and Update Folders
解决了这一问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.