Browse Source

测试maven

dev-lhz
chenzhihang 1 year ago
parent
commit
1c8be87529
2 changed files with 11 additions and 11 deletions
  1. +5
    -5
      ruoyi-modules/management-platform/pom.xml
  2. +6
    -6
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java

+ 5
- 5
ruoyi-modules/management-platform/pom.xml View File

@@ -243,11 +243,11 @@
<version>3.6.0</version>
</dependency>

<!-- <dependency>-->
<!-- <groupId>cn.hutool</groupId>-->
<!-- <artifactId>hutool-all</artifactId>-->
<!-- <version>5.8.5</version>-->
<!-- </dependency>-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.5</version>
</dependency>
</dependencies>

<build>


+ 6
- 6
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java View File

@@ -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));
}
}

Loading…
Cancel
Save