![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
阿五~
既然选择了远方,便只顾风雨兼程~~~~
展开
-
两个对象比较找属性区别除了equal之外的另一妙用
两个对象比较找属性区别除了equal之外的另一妙用应用场景实现代码结果展示 应用场景 对比连个对象是否相等,如果不相等找出不通 实现代码 1、PropertyInfo public class PropertyInfo { public String propertyName; public Object oldValue; public Object newValue; public PropertyInfo() { } public Property原创 2021-11-03 16:51:35 · 244 阅读 · 0 评论 -
java读取本地文件内容
1、从文本中的读取 String path = "src/test/resources/getPhysicalPortsResponse.json" public static String getFileFromPath(String path){ StringBuffer sb = new StringBuffer(); try { File file =...原创 2020-03-06 15:04:48 · 738 阅读 · 0 评论 -
创建线程池推荐方法
package zte.thread; import java.util.LinkedList; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingDeque; import java.util.concurrent.BlockingQueue; import java.uti...原创 2020-02-28 18:00:06 · 289 阅读 · 0 评论 -
springboot项目基础依赖
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org...原创 2020-02-24 09:50:43 · 522 阅读 · 0 评论 -
@RequestMapping的URL匹配过程
import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati...原创 2020-02-21 15:56:44 · 1360 阅读 · 0 评论 -
字符串分割string.split("/")规则详解
分割符之前的算,分隔符之后如果为null就不算 ==================== String str = "a/b/c"; String[] result = str.split("/"); for (int i = 0; i < result.length; i++) { System.out.println(i + "--|" + result[i] + "|--")...原创 2019-11-22 09:58:55 · 803 阅读 · 0 评论 -
Java 8 笔记
1、四大接口 (1)Supplier<T>,供给型接口 (2)Consumer<T>,消费型接口 (3)Function<T,R>函数式接口 (4)Predicate<T>断言式接口原创 2019-05-16 21:02:44 · 74 阅读 · 0 评论 -
@Path=====使用====@PathParam、@PathVariable和@QueryParam
import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import org.springframewo...原创 2018-08-29 15:35:29 · 255 阅读 · 0 评论 -
@RequestMapping=====使用====@PathParam、@PathVariable和@RequestParam
import javax.ws.rs.PathParam; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati...原创 2018-08-29 15:02:34 · 504 阅读 · 0 评论