螺栓检测二期后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.9 KiB

#jdk版本1.8
#-target 1.8
#不做收缩(不删除注释以及未被引用的代码)
-dontshrink
#不做优化(不变更代码实现逻辑)
-dontoptimize
#-dontobfuscate
#-microedition
#不使用大小写混合,混淆后的类名为小写
-dontusemixedcaseclassnames
#使用唯一的类名来混淆
-useuniqueclassmembernames
#允许访问并修改有修饰符的类和类的成员
-allowaccessmodification
#保持 包名不变
-keeppackagenames
#需要保持的属性:异常,内部类,注解等
-keepattributes Exceptions,InnerClass,Signature,Deprecated,SourceFile,LineNumberTable,LocalVariable*Table,*Annotation*,Synthetic,EnclosingMethod
#spring 相关的注解,不要混淆
-keepclassmembers class * {
@org.springframework.** *;
@org.springframework.beans.factory.annotation.Autowired <fields>;
@org.springframework.beans.factory.annotation.Autowired <methods>;
@javax.annotation.PostConstruct *;
@javax.annotation.PreDestroy *;
@javax.annotation.Resource *;
@org.springframework.scheduling.annotation.Async <methods>;
}
#不混淆所有的get/set方法
-keepclassmembers public class *{
void set*(***); *** get*();
}
-keepnames interface ** {*;}
-keep interface * extends * {*;}
-keepparameternames
-keepclassmembers enum * {*;}
# 保持启动类不变
-keep public class com.jiluo.bolt.BoltServerApplication {*;}
#不混淆被Component等注解标记的类
-keep @org.springframework.stereotype.Component class * {*;}
-keep @org.springframework.stereotype.Service class * {*;}
-keep @org.springframework.web.bind.annotation.RestController class * {*;}
-keep @org.springframework.context.annotation.Configuration class * {*;}
#-keep @org.aspectj.lang.annotation.Aspect class * {*;}
-adaptclassstrings
#跳过非公共库的类
-skipnonpubliclibraryclasses
#忽略警告
-ignorewarnings
-dontnote
# 打印配置内容
-printconfiguration
# 配置不混淆某些类
-keep class org.slf4j.** {*;}