解决报错: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.javac.tre -> https://blog.csdn.net/Lyon_yong/article/details/136975218

This commit is contained in:
白茶清欢 2025-06-03 14:19:17 +08:00
parent d2f53bd163
commit 3d6f322da5
4 changed files with 6 additions and 5 deletions

6
.gitignore vendored
View File

@ -25,6 +25,6 @@ logs
.env .env
__debug* __debug*
target target
gateway.iml exception.iml
gateway.ipr exception.ipr
gateway.iws exception.iws

View File

@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>1.18.24</version> <version>1.18.30</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>

View File

@ -75,6 +75,7 @@ public class HashMapCache {
return classList; return classList;
} }
File[] fileList = directory.listFiles(); File[] fileList = directory.listFiles();
assert fileList != null;
for (File file : fileList) { for (File file : fileList) {
String fileName = file.getName(); String fileName = file.getName();
if (!fileName.endsWith(".class")) { if (!fileName.endsWith(".class")) {

View File

@ -5,5 +5,5 @@ import java.util.Map;
// 为了支持注解扫描, 自定义exception必须实现此注解 // 为了支持注解扫描, 自定义exception必须实现此注解
public interface ICustomExceptionAnnotation { public interface ICustomExceptionAnnotation {
// 获取错误码列表: code => message // 获取错误码列表: code => message
public Map<String, String> getCodeTable(); Map<String, String> getCodeTable();
} }