提交 42d51ca7 authored 作者: 李炎's avatar 李炎

新增

上级 688f7d7d
...@@ -20,5 +20,5 @@ services: ...@@ -20,5 +20,5 @@ services:
- /data/config:/inspectsystem/config - /data/config:/inspectsystem/config
- /data/storage:/inspectsystem/storage - /data/storage:/inspectsystem/storage
ports: ports:
- 8090:8090 - 80:8090
...@@ -6,5 +6,3 @@ services: ...@@ -6,5 +6,3 @@ services:
restart: always restart: always
container_name: inspectsystem-system container_name: inspectsystem-system
image: inspectsystem-system image: inspectsystem-system
ports:
- 8082:8090
\ No newline at end of file
# 这里巧妙地使用java中的关键字作字典,混淆之后的代码更加不利于阅读
#
# This obfuscation dictionary contains reserved Java keywords. They can't
# be used in Java source files, but they can be used in compiled class files.
# Note that this hardly improves the obfuscation. Decent decompilers can
# automatically replace reserved keywords, and the effect can fairly simply be
# undone by obfuscating again with simpler names.
# Usage:
# java -jar proguard.jar ..... -obfuscationdictionary keywords.txt
#
do
if
for
int
new
try
byte
case
char
else
goto
long
this
void
break
catch
class
const
final
float
short
super
throw
while
double
import
native
public
return
static
switch
throws
boolean
default
extends
finally
package
private
abstract
continue
strictfp
volatile
interface
protected
transient
implements
instanceof
synchronized
\ No newline at end of file
...@@ -160,11 +160,22 @@ ...@@ -160,11 +160,22 @@
<!--&lt;!&ndash;- 混淆类名之后,对使用Class.forName('className')之类的地方进行相应替代&ndash;&gt;--> <!--&lt;!&ndash;- 混淆类名之后,对使用Class.forName('className')之类的地方进行相应替代&ndash;&gt;-->
<!--<option>-adaptclassstrings</option>--> <!--<option>-adaptclassstrings</option>-->
<!--<option>-ignorewarnings</option>--> <!--<option>-ignorewarnings</option>-->
<!--&lt;!&ndash; 优化时允许访问并修改有修饰符的类和类的成员 &ndash;&gt;-->
<!--&lt;!&ndash;<option>-allowaccessmodification</option>&ndash;&gt;-->
<!--&lt;!&ndash;指定一个文本文件用来生成混淆后的名字&ndash;&gt;-->
<!--<option>-obfuscationdictionary ${project.basedir}/filename.txt</option>-->
<!--&lt;!&ndash;指定一个混淆类名的字典&ndash;&gt;-->
<!--<option>-classobfuscationdictionary ${project.basedir}/filename.txt</option>-->
<!--&lt;!&ndash;指定一个混淆包名的字典&ndash;&gt;-->
<!--<option>-packageobfuscationdictionary ${project.basedir}/filename.txt</option>-->
<!--&lt;!&ndash; 混淆时不生成大小写混合的类名,默认是可以大小写混合&ndash;&gt;--> <!--&lt;!&ndash; 混淆时不生成大小写混合的类名,默认是可以大小写混合&ndash;&gt;-->
<!--<option>-dontusemixedcaseclassnames</option>--> <!--<option>-dontusemixedcaseclassnames</option>-->
<!--&lt;!&ndash; This option will replace all strings in reflections method invocations with new class names.--> <!--&lt;!&ndash; This option will replace all strings in reflections method invocations with new class names.-->
<!--For example, invokes Class.forName('className')&ndash;&gt;--> <!--For example, invokes Class.forName('className')&ndash;&gt;-->
<!--&lt;!&ndash; <option>-adaptclassstrings</option> &ndash;&gt;--> <!--<option>-adaptclassstrings</option>-->
<!--&lt;!&ndash; 不混淆所有的set/get方法 &ndash;&gt;-->
<!--<option>-keepclassmembers public class * {void set*(***);***-->
<!--get*();}</option>-->
<!--&lt;!&ndash; This option will save all original annotations and etc. Otherwise all we be removed from files.&ndash;&gt;--> <!--&lt;!&ndash; This option will save all original annotations and etc. Otherwise all we be removed from files.&ndash;&gt;-->
<!--&lt;!&ndash; 不混淆所有特殊的类&ndash;&gt;--> <!--&lt;!&ndash; 不混淆所有特殊的类&ndash;&gt;-->
<!--<option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,--> <!--<option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,-->
...@@ -184,7 +195,7 @@ ...@@ -184,7 +195,7 @@
<!--&lt;!&ndash;保留不然Mybatis报错&ndash;&gt;--> <!--&lt;!&ndash;保留不然Mybatis报错&ndash;&gt;-->
<!--&lt;!&ndash;<option>-keep class com.lqkj.demo.entity.** { *; }</option>&ndash;&gt;--> <!--&lt;!&ndash;<option>-keep class com.lqkj.demo.entity.** { *; }</option>&ndash;&gt;-->
<!--&lt;!&ndash;<option>-keep class com.lqkj.demo.utils.PageRes { *; }</option>&ndash;&gt;--> <!--&lt;!&ndash;<option>-keep class com.lqkj.demo.utils.PageRes { *; }</option>&ndash;&gt;-->
<!--<option>-keep class com.lqkj.demo.controller.** { *; }</option>--> <!--&lt;!&ndash;<option>-keep class com.lqkj.demo.controller.** { *; }</option>&ndash;&gt;-->
<!--&lt;!&ndash;<option>-keep class com.dsys.project.mp.controller.** { *; }</option>&ndash;&gt;--> <!--&lt;!&ndash;<option>-keep class com.dsys.project.mp.controller.** { *; }</option>&ndash;&gt;-->
<!--&lt;!&ndash;<option>-keep class com.dsys.project.mp.config.** { *; }</option>&ndash;&gt;--> <!--&lt;!&ndash;<option>-keep class com.dsys.project.mp.config.** { *; }</option>&ndash;&gt;-->
<!--&lt;!&ndash;<option>-keep class com.lqkj.demo.dto.** { *; }</option>&ndash;&gt;--> <!--&lt;!&ndash;<option>-keep class com.lqkj.demo.dto.** { *; }</option>&ndash;&gt;-->
...@@ -196,10 +207,11 @@ ...@@ -196,10 +207,11 @@
<!--&lt;!&ndash; <option>-keep @org.springframework.stereotype.Service class *</option> &ndash;&gt;--> <!--&lt;!&ndash; <option>-keep @org.springframework.stereotype.Service class *</option> &ndash;&gt;-->
<!--&lt;!&ndash; This option will save all original defined annotations in all class in all packages.&ndash;&gt;--> <!--&lt;!&ndash; This option will save all original defined annotations in all class in all packages.&ndash;&gt;-->
<!--<option>-keepclassmembers class * {--> <!--<option>-keepclassmembers class * {-->
<!--&lt;!&ndash; @org.springframework.beans.factory.annotation.Autowired *; &ndash;&gt;--> <!--@org.springframework.beans.factory.annotation.Autowired *;-->
<!--@org.springframework.beans.factory.annotation.Value *;--> <!--@org.springframework.beans.factory.annotation.Value *;-->
<!--}--> <!--}-->
<!--</option>--> <!--</option>-->
<!--<option>-dontwarn *</option>-->
<!--</options>--> <!--</options>-->
<!--<libs>--> <!--<libs>-->
<!--&lt;!&ndash; Include main JAVA library required.&ndash;&gt;--> <!--&lt;!&ndash; Include main JAVA library required.&ndash;&gt;-->
...@@ -225,7 +237,7 @@ ...@@ -225,7 +237,7 @@
</goals> </goals>
<!--<configuration>--> <!--<configuration>-->
<!--<includeSystemScope>true</includeSystemScope>--> <!--<includeSystemScope>true</includeSystemScope>-->
<!--&lt;!&ndash;<mainClass>com.lqkj.demo.JintaiDomeApplication</mainClass>&ndash;&gt;--> <!--<mainClass>com.lqkj.demo.JintaiDomeApplication</mainClass>-->
<!--</configuration>--> <!--</configuration>-->
</execution> </execution>
</executions> </executions>
......
...@@ -6,6 +6,7 @@ import java.util.Map; ...@@ -6,6 +6,7 @@ import java.util.Map;
public class Constants { public class Constants {
public static final String OZTIMSMAC = "00-50-56-C0-00-08"; public static final String OZTIMSMAC = "00-50-56-C0-00-08";
public static final String TESTIMSMAC ="02-42-AC-14-00-04";
public static final Map<String, String> entity = new HashMap<String, String>() {{ public static final Map<String, String> entity = new HashMap<String, String>() {{
put(OZTIMSMAC, ""); put(OZTIMSMAC, "");
}}; }};
......
...@@ -24,10 +24,10 @@ import java.net.UnknownHostException; ...@@ -24,10 +24,10 @@ import java.net.UnknownHostException;
@Slf4j @Slf4j
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class}) @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
public class JintaiDomeApplication extends SpringBootServletInitializer { public class JintaiDomeApplication extends SpringBootServletInitializer {
// @Override @Override
// protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
// return application.sources(JintaiDomeApplication.class); return application.sources(JintaiDomeApplication.class);
// } }
// public static class CustomGenerator implements BeanNameGenerator { // public static class CustomGenerator implements BeanNameGenerator {
// //
// @Override // @Override
......
...@@ -16,8 +16,8 @@ public class LocalMACUtil { ...@@ -16,8 +16,8 @@ public class LocalMACUtil {
} }
} }
public static void main(String[] args) { public static void main(String[] args) throws SocketException, UnknownHostException {
// getLocalMac(InetAddress.getLocalHost());
} }
/** /**
* @param args * @param args
...@@ -35,6 +35,7 @@ public class LocalMACUtil { ...@@ -35,6 +35,7 @@ public class LocalMACUtil {
if (i != 0) { if (i != 0) {
sb.append("-"); sb.append("-");
} }
//字节转换为整数 //字节转换为整数
int temp = mac[i] & 0xff; int temp = mac[i] & 0xff;
String str = Integer.toHexString(temp); String str = Integer.toHexString(temp);
...@@ -64,6 +65,7 @@ public class LocalMACUtil { ...@@ -64,6 +65,7 @@ public class LocalMACUtil {
} else { } else {
sb.append(str); sb.append(str);
} }
} }
return sb.toString().toUpperCase(); return sb.toString().toUpperCase();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论