使用allatori对SpringBoot多模块代码进行混淆
参考文档
http://www.allatori.com/doc.html
https://blog.csdn.net/rickiyeat/article/details/79386000
https://blog.csdn.net/u014795242/article/details/81204574
https://github.com/Lovnx/confusion
https://www.jianshu.com/p/9df4a0bb46be
操作步骤
1、在包含Controller类的module下(以下简称A)添加jar包
jar包可以在https://github.com/Lovnx/confusion
这个示例中得到
2、在A的pom.xml中添加
<build>
<finalName>${finalName}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>你的启动类</mainClass>
<includeSystemScope>true</includeSystemScope>
<fork>true</fork>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>