| 接口 | 说明 |
|---|---|
| ObjectFunc<T> |
| 类 | 说明 |
|---|---|
| AnnotationUtil | |
| AntPathMatcher | |
| AntPathMatcher.AntPathStringMatcher |
Tests whether or not a string matches against a pattern via a
Pattern. |
| AntPathMatcher.AntPatternComparator |
The default
Comparator implementation returned by
AntPathMatcher.getPatternComparator(String). |
| AntPathMatcher.AntPatternComparator.PatternInfo |
Value class that holds information about the pattern, e.g. number of
occurrences of "*", "**", and "{" pattern elements.
|
| AntPathMatcher.PathSeparatorPatternCache |
A simple cache for patterns that depend on the configured path separator.
|
| ArrayUtil | |
| CacheUtil |
Usage:
1、CacheUtil.get("cacheName","key")
2、CacheUtil.use("default").get("cacheName","key")
|
| ClassScanner | |
| ClassType | |
| ClassUtil |
类实例创建者创建者
Created by michael on 17/3/21.
|
| CollectionUtil | |
| ConfigUtil | |
| CookieUtil |
参考:spring-security
https://github.com/spring-projects/spring-security/
blob/master/web/src/main/java/org/springframework/security/
web/authentication/rememberme/TokenBasedRememberMeServices.java
....AbstractRememberMeServices.java
加密的cookie工具类
|
| DateUtil | |
| DESUtil |
DESUtil 对称加密工具类,非对称加密请参考 RSAUtil
|
| FileScanner | |
| FileUtil | |
| HttpUtil |
功能更强大的http工具类
1、支持 http get post 操作
2、支持文件下载 和 文件上传
3、支持自定义https文件证书(可以用在类似调用支付相关接口等)
|
| JsonUtil |
基于 FastJson,方便解析 Json 内容
例如:
{
"array": [
1,
2,
3
],
"type": true,
"null": null,
"number": 123,
"object": {
"a": "b",
"c": "d",
"e":1
},
"key": "welcome to CodeFormat.CN"
}
Boolean type = JsonUtil.getBool(json,"type");
//type == true
int e = JsonUtil.getInt(json,"object.e")
// e == 1
BigInteger n = JsonUtil.getBigInteger("number")
// n == 123
String[] array = JsonUtil.get(json,"array",String[].class)
//array == ["1","2","3"]
int[] array = JsonUtil.get(json,"array",int[].class)
//array == [1,2,3]
Map map = JsonUtil.get(json,"object",Map.class)
//map == {"a":"b","c":"d","e":1}
int x = JsonUtil.getInt(json,"array[1]");
// x == 2
String key = JsonUtil.getString(json,"key");
// key == "welcome to CodeFormat.CN"
|
| ModelUtil | |
| NamedThreadFactory | |
| NamedThreadPools | |
| NetUtil | |
| ObjectUtil | |
| QuietlyUtil | |
| ReflectUtil |
反射相关操作的工具类
|
| RequestUtil | |
| RSAUtil |
RSA 非对称加密工具类,对称加密请参考 DESUtil
|
| StringUtils | |
| StrUtil | |
| TypeDef<T> |
Copyright © 2024. All rights reserved.