![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java常用基础
乐20200822
这个作者很懒,什么都没留下…
展开
-
httpclient4.5实现get、post请求
1. pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.3.6.RELEASE</version> </dependency> <!--projectLombok Slf4j--> <d原创 2021-05-24 11:30:34 · 392 阅读 · 0 评论 -
时间类
1. Date转ZonedDateTime ZonedDateTime.ofInstant(<Date>.toInstant(), ZoneId.systemDefault()); 2. ZoneDatedTime转Date Date.from(<ZonedDateTime>.toInstant());原创 2020-08-11 10:07:36 · 165 阅读 · 0 评论