System混淆可运行,其他模块待验证
This commit is contained in:
@@ -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 # 不删除未使用代码
|
||||
|
||||
+7
-5
@@ -30,12 +30,14 @@ public class WxConfig {
|
||||
configImpl.setSecret(config.getSecret());
|
||||
configMap.put(miniAppName, configImpl);
|
||||
});
|
||||
String defaultAppName = miniAppProperties.getDefaultAppName();
|
||||
if (StrUtil.isBlank(defaultAppName) || !configMap.containsKey(defaultAppName)) {
|
||||
defaultAppName = configMap.keySet().iterator().next();
|
||||
}
|
||||
WxMaService wxMaService = new WxMaServiceImpl();
|
||||
wxMaService.setMultiConfigs(configMap, defaultAppName);
|
||||
if (!configMap.isEmpty()) {
|
||||
String defaultAppName = miniAppProperties.getDefaultAppName();
|
||||
if (StrUtil.isBlank(defaultAppName) || !configMap.containsKey(defaultAppName)) {
|
||||
defaultAppName = configMap.keySet().iterator().next();
|
||||
}
|
||||
wxMaService.setMultiConfigs(configMap, defaultAppName);
|
||||
}
|
||||
return wxMaService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||
|
||||
MAINTAINER xxx@163.com
|
||||
|
||||
|
||||
ENV PROFILE_NAME dev
|
||||
ENV SERVER_PORT 7001
|
||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
||||
ENV NACOS_USERNAME xjuser
|
||||
ENV NACOS_PASSWORD Aa135790!123
|
||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
||||
ENV NACOS_GROUP dev
|
||||
ENV PROFILE_NAME=dev \
|
||||
SERVER_PORT=7001 \
|
||||
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||
NACOS_USERNAME=xjuser \
|
||||
NACOS_PASSWORD=Aa135790!123 \
|
||||
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||
NACOS_GROUP=dev
|
||||
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
@@ -19,6 +16,6 @@ WORKDIR /jeecg-system-start
|
||||
|
||||
EXPOSE 7001
|
||||
|
||||
ADD ./target/jeecg-system-start.jar ./
|
||||
COPY ./target/jeecg-system-start-xj.jar ./
|
||||
|
||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start.jar
|
||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start-xj.jar
|
||||
Reference in New Issue
Block a user