add:增加加密作为演示的代码版本;
This commit is contained in:
@@ -311,6 +311,32 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- ClassFinal 字节码加密插件 -->
|
||||
<plugin>
|
||||
<groupId>com.gitee.lcm742320521</groupId>
|
||||
<artifactId>classfinal-maven-plugin</artifactId>
|
||||
<version>1.4.1</version>
|
||||
<configuration>
|
||||
<!-- 加密密码,请务必修改为强密码并妥善保管 -->
|
||||
<password>nl2024</password>
|
||||
<!-- 需要加密的包名,多个包用逗号分隔,通常为核心业务包 -->
|
||||
<packages>org.nl</packages>
|
||||
<!-- 需要加密的配置文件,如 yml/properties -->
|
||||
<cfgfiles>application.yml,application-dev.yml,application-prod.yml,application-prod2.yml</cfgfiles>
|
||||
<!-- 排除某些包(如实体类、DTO),避免加密后影响框架使用 -->
|
||||
<excludes>org.nl.**.domain.**</excludes>
|
||||
<!-- 可选:绑定机器码,使加密后的jar包只能在指定机器上运行 -->
|
||||
<!-- <code>目标机器的唯一标识码</code> -->
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>classFinal</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user