随笔分类 - >>>>>>已整理的分类 / 100个Java工具类
摘要:
import java.lang.reflect.Field; import java.lang.reflect.Method; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Arra
阅读全文

摘要:
org.apache.commons.collections包下的CollectionUtils工具类。 <!--CollectionUtils --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-co
阅读全文

摘要:
Java中提供了ZipOutputStream和GZIPOutputStream类供文件压缩使用。 import java.io.*; import java.nio.charset.Charset; import java.util.Enumeration; import java.util.zi
阅读全文

摘要:
通过JDK网络类Java.net.HttpURLConnection <!--jackson--> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId>
阅读全文

摘要:
加解密算法应用场景 加解密是什么?为什么要加密?加密类型都有哪些?有万能加密么? 1)加密,顾名思义,添加密码,密码的作用是加密保护和安全认证。 如果没有加密,即明文显示,那么很容易导致信息泄露;加密之后,未经授权的用户即使获得了信息,但不知秘钥,仍然无法了解信息的具体内容。 2)加密算法大体上分为
阅读全文

摘要:
日期工具类 import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public final class DateUtils
阅读全文

摘要:
此文重点讲述:字符串之个性化格式处理。 个性化字符串工具类 import java.util.List; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 字符
阅读全文

摘要:
此文重点讲述:多种集合类型实现排序功能,另外还有Collections其他工具类的讲解。 1)Collections工具类是一个专门用来操作Set,List,Map等集合的工具类。 2)Collections工具类提供了一系列静态方法对集合元素进行排序、查询、修改等操作。 List<Map<Stri
阅读全文

摘要:
添加依赖: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <dependency> <groupId>org.apa
阅读全文

摘要:
示例代码: import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springfra
阅读全文

摘要:
示例代码: import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springfr
阅读全文
