biz混淆后全部启动

This commit is contained in:
SkyJourney
2025-07-12 07:26:58 +08:00
parent a9d92dd9a3
commit 42b16f70b9
12 changed files with 45 additions and 52 deletions
@@ -1,32 +1,30 @@
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions -keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions
-keep @org.springframework.stereotype.Service class * -keep @org.springframework.stereotype.Service class *
-keep @org.springframework.web.bind.annotation.RestController 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 @org.springframework.stereotype.Component class *
-keep class lombok.** { *; }
-keepclassmembers enum * { # 保留枚举结构 -keepclassmembers enum * { # 保留枚举结构
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 -keepclassmembers class * implements java.io.Serializable { *; }
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
}
-keepclassmembers class * { -keepclassmembers class * {
@org.springframework.web.bind.annotation.*Mapping *; @org.springframework.web.bind.annotation.*Mapping *;
} }
-keepclassmembers class * { -keepclassmembers class * {
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
} }
-keep class lombok.** { *; }
-keepclassmembers class * { -keepclassmembers class * {
@lombok.Getter *; @lombok.Getter *;
@lombok.Setter *; @lombok.Setter *;
} }
# MyBatis 专用保留规则 # MyBatis 专用保留规则
-keep interface com.renkang.**.mapper.** { *; } -keep interface com.renkang.**.mapper.** { *; }
-keepclassmembers class com.renkang.**.entity.** { *; } -keep class com.renkang.**.entity.** { *; }
-keep class com.renkang.**.bean.** { *; }
-keep class com.renkang.**.model.** { *; }
-keep class com.renkang.**.vo.** { *; }
# 关闭优化和压缩(避免框架兼容性问题) # 关闭优化和压缩(避免框架兼容性问题)
-dontshrink # 不删除未使用代码 -dontshrink # 不删除未使用代码
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.storge.redis.ConHealthInfoRedisTunnel;
import com.renkang.consultation.entity.ConHealthInfo; import com.renkang.consultation.entity.ConHealthInfo;
import com.renkang.consultation.mapper.ConHealthInfoMapper; import com.renkang.consultation.mapper.ConHealthInfoMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@Repository @Component
public class ComposeConHealthInfo { public class ComposeConHealthInfo {
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConKnowledge;
import com.renkang.consultation.mapper.ConKnowledgeMapper; import com.renkang.consultation.mapper.ConKnowledgeMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
@Repository @Component
public class ComposeConKnowledge { public class ComposeConKnowledge {
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.storge.db.ConKnowledgeCategoryDbTunnel;
import com.renkang.consultation.api.storge.redis.ConKnowledgeCategoryRedisTunnel; import com.renkang.consultation.api.storge.redis.ConKnowledgeCategoryRedisTunnel;
import com.renkang.consultation.entity.ConKnowledgeCategory; import com.renkang.consultation.entity.ConKnowledgeCategory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@Repository @Component
public class ComposeConKnowledgeCategory { public class ComposeConKnowledgeCategory {
@Autowired @Autowired
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.renkang.consultation.entity.ConKnowledgeCategory; import com.renkang.consultation.entity.ConKnowledgeCategory;
import com.renkang.consultation.mapper.ConKnowledgeCategoryMapper; import com.renkang.consultation.mapper.ConKnowledgeCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@Repository @Component
public class ConKnowledgeCategoryDbTunnel { public class ConKnowledgeCategoryDbTunnel {
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConDoctorFollow;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ZSetOperations; import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
@Repository @Component
public class ConDoctorFollowReidsTunnel { public class ConDoctorFollowReidsTunnel {
@Autowired @Autowired
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.RedisConstants;
import com.renkang.consultation.entity.ConHealthInfo; import com.renkang.consultation.entity.ConHealthInfo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@Repository @Component
public class ConHealthInfoRedisTunnel { public class ConHealthInfoRedisTunnel {
@Autowired @Autowired
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConHospitalFollow;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ZSetOperations; import org.springframework.data.redis.core.ZSetOperations;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
@Repository @Component
public class ConHospitalFollowReidsTunnel { public class ConHospitalFollowReidsTunnel {
@Autowired @Autowired
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.RedisConstants;
import com.renkang.consultation.entity.ConKnowledgeCategory; import com.renkang.consultation.entity.ConKnowledgeCategory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;
@Repository @Component
public class ConKnowledgeCategoryRedisTunnel { public class ConKnowledgeCategoryRedisTunnel {
@@ -1,32 +1,30 @@
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions -keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions
-keep @org.springframework.stereotype.Service class * -keep @org.springframework.stereotype.Service class *
-keep @org.springframework.web.bind.annotation.RestController 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 @org.springframework.stereotype.Component class *
-keep class lombok.** { *; }
-keepclassmembers enum * { # 保留枚举结构 -keepclassmembers enum * { # 保留枚举结构
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 -keepclassmembers class * implements java.io.Serializable { *; }
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
}
-keepclassmembers class * { -keepclassmembers class * {
@org.springframework.web.bind.annotation.*Mapping *; @org.springframework.web.bind.annotation.*Mapping *;
} }
-keepclassmembers class * { -keepclassmembers class * {
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
} }
-keep class lombok.** { *; }
-keepclassmembers class * { -keepclassmembers class * {
@lombok.Getter *; @lombok.Getter *;
@lombok.Setter *; @lombok.Setter *;
} }
# MyBatis 专用保留规则 # MyBatis 专用保留规则
-keep interface com.renkang.**.mapper.** { *; } -keep interface com.renkang.**.mapper.** { *; }
-keepclassmembers class com.renkang.**.entity.** { *; } -keep class com.renkang.**.entity.** { *; }
-keep class com.renkang.**.bean.** { *; }
-keep class com.renkang.**.model.** { *; }
-keep class com.renkang.**.vo.** { *; }
# 关闭优化和压缩(避免框架兼容性问题) # 关闭优化和压缩(避免框架兼容性问题)
-dontshrink # 不删除未使用代码 -dontshrink # 不删除未使用代码
+7 -9
View File
@@ -1,32 +1,30 @@
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions -keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions
-keep @org.springframework.stereotype.Service class * -keep @org.springframework.stereotype.Service class *
-keep @org.springframework.web.bind.annotation.RestController 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 @org.springframework.stereotype.Component class *
-keep class lombok.** { *; }
-keepclassmembers enum * { # 保留枚举结构 -keepclassmembers enum * { # 保留枚举结构
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 -keepclassmembers class * implements java.io.Serializable { *; }
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
}
-keepclassmembers class * { -keepclassmembers class * {
@org.springframework.web.bind.annotation.*Mapping *; @org.springframework.web.bind.annotation.*Mapping *;
} }
-keepclassmembers class * { -keepclassmembers class * {
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
} }
-keep class lombok.** { *; }
-keepclassmembers class * { -keepclassmembers class * {
@lombok.Getter *; @lombok.Getter *;
@lombok.Setter *; @lombok.Setter *;
} }
# MyBatis 专用保留规则 # MyBatis 专用保留规则
-keep interface com.renkang.**.mapper.** { *; } -keep interface com.renkang.**.mapper.** { *; }
-keepclassmembers class com.renkang.**.entity.** { *; } -keep class com.renkang.**.entity.** { *; }
-keep class com.renkang.**.bean.** { *; }
-keep class com.renkang.**.model.** { *; }
-keep class com.renkang.**.vo.** { *; }
# 关闭优化和压缩(避免框架兼容性问题) # 关闭优化和压缩(避免框架兼容性问题)
-dontshrink # 不删除未使用代码 -dontshrink # 不删除未使用代码
+8 -9
View File
@@ -1,32 +1,31 @@
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions -keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions
-keep @org.springframework.stereotype.Service class * -keep @org.springframework.stereotype.Service class *
-keep @org.springframework.web.bind.annotation.RestController 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 @org.springframework.stereotype.Component class *
-keep class lombok.** { *; }
-keepclassmembers enum * { # 保留枚举结构 -keepclassmembers enum * { # 保留枚举结构
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keepclassmembers class * implements java.io.Serializable { # 保留序列化类 -keepclassmembers class * implements java.io.Serializable { *; }
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
}
-keepclassmembers class * { -keepclassmembers class * {
@org.springframework.web.bind.annotation.*Mapping *; @org.springframework.web.bind.annotation.*Mapping *;
} }
-keepclassmembers class * { -keepclassmembers class * {
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda); private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
} }
-keep class lombok.** { *; }
-keepclassmembers class * { -keepclassmembers class * {
@lombok.Getter *; @lombok.Getter *;
@lombok.Setter *; @lombok.Setter *;
} }
# MyBatis 专用保留规则 # MyBatis 专用保留规则
-keep interface com.renkang.**.mapper.** { *; } -keep interface com.renkang.**.mapper.** { *; }
-keepclassmembers class com.renkang.**.entity.** { *; } -keep class com.renkang.**.mapper.provider** { *; }
-keep class com.renkang.**.entity.** { *; }
-keep class com.renkang.**.bean.** { *; }
-keep class com.renkang.**.model.** { *; }
-keep class com.renkang.**.vo.** { *; }
# 关闭优化和压缩(避免框架兼容性问题) # 关闭优化和压缩(避免框架兼容性问题)
-dontshrink # 不删除未使用代码 -dontshrink # 不删除未使用代码