【同步】jdk21 和 jdk8 的代码

This commit is contained in:
YunaiV
2025-12-07 10:40:21 +08:00
parent 91870831d2
commit 289d847eff
3 changed files with 2 additions and 10 deletions

View File

@@ -57,14 +57,6 @@
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
<!-- 强制指定quartz版本 -->
<!-- TODO @芋艿:临时兼容 spring boot 3.x 的 quartz 引入版本过低的问题,后续要调整下 -->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.5.2</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>

View File

@@ -44,8 +44,9 @@ public class HttpUtils {
* @param value 参数 * @param value 参数
* @return 解码后的参数 * @return 解码后的参数
*/ */
@SneakyThrows
public static String decodeUtf8(String value) { public static String decodeUtf8(String value) {
return URLDecoder.decode(value, StandardCharsets.UTF_8); return URLDecoder.decode(value, StandardCharsets.UTF_8.name());
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@@ -15,7 +15,6 @@ import org.springframework.scheduling.quartz.QuartzJobBean;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import static cn.hutool.core.exceptions.ExceptionUtil.getRootCauseMessage; import static cn.hutool.core.exceptions.ExceptionUtil.getRootCauseMessage;