马会东的博客

马会东的博客

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

以下介绍2种解决办法

 

 

1.修改pom文件

2.加密类改为其他加密类(个人推荐)

 

1.pom文件添加如下代码(compilerArguments代码块)

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>

<compilerArguments>
<verbose />
<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
linux打包时,需要将";"改为":",所以个人不推荐使用此方法

 

2.加密类改为其他加密类

2.1 将com.sun.org.apache.xml.internal.security.utils.Base64 替换为 org.apache.commons.codec.binary.Base64

2.2 加密替换:Base64.encode 改为 Base64.encodeBase64String

2.3 解密替换:Base64.decode 改为 Base64.decodeBase64

posted on 2022-08-01 18:01  马会东  阅读(628)  评论(0编辑  收藏  举报