
java 工具类
青春1314
这个作者很懒,什么都没留下…
展开
-
map转换成VO
1、pom.xml依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> </dependency> <dependency> <groupId>com.fasterxml.jackson原创 2020-05-25 23:30:39 · 2806 阅读 · 3 评论 -
时间工具类
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.logging.SimpleFormatter; public class DateUtil { /** *...原创 2019-11-17 22:21:10 · 96 阅读 · 0 评论 -
java工具类HttpClientUtil
package com.common.utils;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.net.URI;import java.net.URISyntaxException;import java.util.ArrayList;import java.util.List;...原创 2018-04-21 00:31:21 · 798 阅读 · 0 评论 -
对象转换json、json转换对象、json转换List集合(jackson-annotations.jar,jackson-core.jar,jackson-databind.jar)
package com.util; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; import java.util.List...原创 2018-07-26 00:22:15 · 585 阅读 · 0 评论 -
CookieUtil工具类(购物车写入cookie,用户token写入cookie)
package com.common; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest...原创 2018-10-08 01:28:18 · 502 阅读 · 0 评论