Dec 16

Intellij IDEA: cannot resolve symbol 不指定

felix021 @ 2025-12-16 11:07 [IT » 程序设计] 评论(0) , 引用(0) , 阅读(198) | Via 本站原创 | |
结论:IDEA 是 SH*T.


问题:报错,找不到符号,通常是 Lombok annotation 生成的,比如 @Builder 生成的 XXXBuilder。


【可能】的解决方案

(1) IDE 参数,玄学,可能有用

Help -> Custom VM Option
引用
-Xms2g
-Xmx16g


Settings -> Compiler:
- Shared VM Options: "-Xss1024m"
- Heap Size: 16384 (Mbytes)


(2) 将 IDE 构建/运行操作委托给 Maven
Settings -> Build Tools -> Delegate IDE Build/Run actions to Maven.


(3) 跳过 IDE 的编译

- 使用 mvn compile -T 4 、 mvn test-compile -T 4(编译测试代码)
- 在Run Configuration的 "Modify options" 里选择 "Do not build before run"



欢迎扫码关注:




转载请注明出自 ,如是转载文则注明原出处,谢谢:)
RSS订阅地址: https://www.felix021.com/blog/feed.php
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   *非必须
网址   电邮   [注册]