08 2021 档案
摘要:转载于: https://juejin.im/post/5cd6b719f265da03b2044d56 几种列表去重的方法 在这里我来分享几种列表去重的方法,算是一次整理吧,如有纰漏,请不吝赐教。 1. Stream 的distinct()方法 distinct()是Java 8 中 Stream
阅读全文
摘要:Docker下安装Mysql 下载mysql5.7的docker镜像:docker pull mysql:5.7 使用docker命令启动: docker run -p 3306:3306 --name mysql \ -v /mydata/mysql/log:/var/log/mysql \ -v
阅读全文
摘要:SpringCloud 整合Spring Boot项目部署是需要添加相关插件: <build> <plugins> <plugin> <groupId>org.springframework</groupId> <artifactId>spring-boot-maven-plugin</artifa
阅读全文
摘要:import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.
阅读全文
摘要:Json 序列化的三种方式: 1.Gson @SerializedName("idcard") private String idcardNo; 2.fastJson @JSONField(name="idcard") private String idcardNo; 3.JackSon @Json
阅读全文
摘要:检查当前对象是否为空,当对象为NULL时,直接返回TRUE,否则通过反射遍历里面参数,有数据则返回FALSE. 1 /** 2 * Determine whether the attribute values in the object are all empty. 3 * 4 * @param o
阅读全文