JDK从21降至8
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user