From 1c8be875296fc401c46c87998eb317138d7162ad Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Sat, 12 Oct 2024 15:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95maven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-modules/management-platform/pom.xml | 10 +++++----- .../platform/service/impl/ModelsServiceImpl.java | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ruoyi-modules/management-platform/pom.xml b/ruoyi-modules/management-platform/pom.xml index 528501b0..cee6c681 100644 --- a/ruoyi-modules/management-platform/pom.xml +++ b/ruoyi-modules/management-platform/pom.xml @@ -243,11 +243,11 @@ 3.6.0 - - - - - + + cn.hutool + hutool-all + 5.8.5 + diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java index 8f0eecbb..b34af361 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java @@ -1,6 +1,6 @@ package com.ruoyi.platform.service.impl; -//import cn.hutool.core.util.StrUtil; +import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; @@ -1216,9 +1216,9 @@ public class ModelsServiceImpl implements ModelsService { modelMetaVo.setMetrics(result); } -// void test(){ -// String str = "Hello, Hutool!"; -// System.out.println(StrUtil.isEmpty(str)); // 判断字符串是否为空 -// System.out.println(StrUtil.sub(str, 0, 5)); -// } + void test(){ + String str = "Hello, Hutool!"; + System.out.println(StrUtil.isEmpty(str)); // 判断字符串是否为空 + System.out.println(StrUtil.sub(str, 0, 5)); + } }