摘要:
GsonBuilder gson = new GsonBuilder(); gson.serializeNulls().create().toJson(r) 阅读全文
posted @ 2021-09-17 15:50
笑~笑
阅读(267)
评论(0)
推荐(0)
摘要:
package com.sensor.sellCabinet.util; import lombok.Data; import java.util.Collections; import java.util.List; @Data public class Paging { private Inte 阅读全文
posted @ 2021-09-17 15:22
笑~笑
阅读(49)
评论(0)
推荐(0)
摘要:
package com.sensor.sellCabinet.util; import java.io.File; import java.io.FileOutputStream; public class JsonPrint { private static String getLevelStr( 阅读全文
posted @ 2021-09-17 15:21
笑~笑
阅读(536)
评论(0)
推荐(0)
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context
摘要:
单元测试的包路径要和启动类的包一样,不然找不到启动类 阅读全文
posted @ 2021-09-17 13:16
笑~笑
阅读(37)
评论(0)
推荐(0)
摘要:
1、直接将文件读取成Map,标题就是key, 2、如果要读取成对象,则需要对象的属性名和标题设置成一样 <!--hutool--> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <versi 阅读全文
posted @ 2021-09-17 08:34
笑~笑
阅读(1152)
评论(0)
推荐(0)