System混淆可运行,其他模块待验证

This commit is contained in:
SkyJourney
2025-07-12 00:19:06 +08:00
parent 1380c846f5
commit a9d92dd9a3
9 changed files with 61 additions and 70 deletions
+6 -4
View File
@@ -1,8 +1,9 @@
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions
-keep @org.springframework.stereotype.Service class *
-keep @org.springframework.web.bind.annotation.RestController class *
-keep @org.springframework.context.annotation.Configuration class *
-keep @org.springframework.context.annotation.Configuration class * { *; }
-keep @org.springframework.stereotype.Component class *
-keep class lombok.** { *; }
-keepclassmembers enum * { # 保留枚举结构
public static **[] values();
public static ** valueOf(java.lang.String);
@@ -14,15 +15,16 @@
-keepclassmembers class * {
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
}
-keep class lombok.** { *; }
-keepclassmembers class * {
@lombok.Getter *;
@lombok.Setter *;
}
# MyBatis 专用保留规则
-keep interface org.jeecg.**.mapper.** { *; }
-keepclassmembers class org.jeecg.**.entity.** { *; }
-dontwarn org.jeecg.**.entity.**
-keep class org.jeecg.**.entity.** { *; }
-keep class org.jeecg.**.bean.** { *; }
-keep class org.jeecg.**.model.** { *; }
-keep class org.jeecg.**.vo.** { *; }
# 关闭优化和压缩(避免框架兼容性问题)
-dontshrink # 不删除未使用代码