JDK从21降至8

This commit is contained in:
chy
2026-03-14 09:35:05 +08:00
parent 2e96ca63aa
commit 0341a095ea
5 changed files with 81 additions and 70 deletions

View File

@@ -117,4 +117,15 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -13,8 +13,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>10</source>
<target>10</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>

View File

@@ -218,7 +218,7 @@ public class HttpUtils {
}
paramStr.append(entry.getKey())
.append("=")
.append(java.net.URLEncoder.encode(entry.getValue(), StandardCharsets.UTF_8));
.append(java.net.URLEncoder.encode(entry.getValue(), String.valueOf(StandardCharsets.UTF_8)));
}
writer = new BufferedWriter(
new OutputStreamWriter(conn.getOutputStream(), StandardCharsets.UTF_8));