jdk版本调整为11

V0.5.x
xiwa 2022-05-15 12:45:57 +08:00
parent 3c837bd6ea
commit 68535fbc65
5 changed files with 7 additions and 8 deletions

View File

@ -2,7 +2,6 @@ package cc.iotkit.common.utils;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.StringUtils;
import sun.misc.BASE64Decoder;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
@ -30,7 +29,7 @@ public class CodecUtil {
* @throws Exception
*/
private static byte[] base64Decode(String base64Code) throws Exception {
return StringUtils.isEmpty(base64Code) ? null : new BASE64Decoder().decodeBuffer(base64Code);
return StringUtils.isEmpty(base64Code) ? null : new Base64().decode(base64Code);
}

View File

@ -172,8 +172,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

View File

@ -25,7 +25,7 @@
<name>iotkit-parent</name>
<description>iotkit parent</description>
<properties>
<java.version>1.8</java.version>
<java.version>11</java.version>
<keycloak-spring.version>17.0.0</keycloak-spring.version>
<vertx.version>4.2.2</vertx.version>
</properties>

View File

@ -63,7 +63,7 @@
</dependency>
</dependencies>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
</properties>
</project>

View File

@ -18,8 +18,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>