随笔分类 -  Java

point at Java
转:Apache common包 CollectionUtils 使用详解
摘要:集合判断: 例1: 判断集合是否为空:CollectionUtils.isEmpty(null): trueCollectionUtils.isEmpty(new ArrayList()): trueCollectionUtils.isEmpty({a,b}): false 例2: 判断集合是否不为 阅读全文

posted @ 2019-02-01 15:14 EastChilde 阅读(462) 评论(0) 推荐(0)

Long\long 类型 强转 Integer\int 类型
摘要:long -> int | long x = 10; int y = (int) x; Long -> Integer | Long x = (long) 10; Integer y = x.intValue(); int -> long | int x = 10 ; long y = (long) 阅读全文

posted @ 2018-09-04 12:18 EastChilde 阅读(2862) 评论(0) 推荐(0)

JaveWeb开发使用工具套装(较好的一整套开发工具简介)
摘要:工具介绍,仅java开发后台工具,前后端开发分离时,自测接口工具,开发工具等。 一、web接口测试的两个提高工作效率的神器-Restlet Client和fe助手(谷歌插件) Restlet Client 是模拟前端web发送get/post请求,可以是json、text、对象的形式发送请求对于前后 阅读全文

posted @ 2018-08-22 14:14 EastChilde 阅读(183) 评论(0) 推荐(0)

eclipse 新建maven maven-compiler-plugin 报错
摘要:新建maven项目的时候报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project testweb1: Compilation fai 阅读全文

posted @ 2018-07-20 09:49 EastChilde 阅读(592) 评论(0) 推荐(0)

Java1.8 帮助文档
摘要:英文 中文 – 谷歌版 在线版: http://blog.fondme.cn:8000/apidoc/jdk-1.8-google/下载链接:https://download.csdn.net/album/detail/4437 中文 – 必应版 下载链接:https://download.csdn 阅读全文

posted @ 2018-07-11 15:12 EastChilde 阅读(797) 评论(0) 推荐(0)

java代码中常用的正则表达式
摘要:常用的正则表达式: (1) "^\d+$" //非负整数(正整数 + 0) (2) "^[0-9]*[1-9][0-9]*$" //正整数 (3) "^((-\d+)|(0+))$" //非正整数(负整数 + 0) (4) "^-[0-9]*[1-9][0-9]*$" //负整数 (5) "^-?\ 阅读全文

posted @ 2018-07-03 15:00 EastChilde 阅读(410) 评论(0) 推荐(0)

怎么解决tomcat占用8080端口问题
摘要:在dos下,输入 netstat -ano|findstr 8080 //说明:查看占用8080端口的进程 显示占用端口的进程 taskkill /pid 6856 /f //说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。 阅读全文

posted @ 2018-06-19 23:34 EastChilde 阅读(137) 评论(0) 推荐(0)

泛型方法的使用笔记,持续修改,完善
摘要:以上class类适用于服务器返回json字符串给前端的通用返回泛型类,仅此谨记泛型使用。 阅读全文

posted @ 2018-06-05 10:17 EastChilde 阅读(448) 评论(0) 推荐(0)

StringUtils的API的高格调使用方式
摘要:org.apache.commons.lang3.StringUtils.EMPTY 相当于“” 案例: 之所以这么使用,是因为有以下优势: 在以后需要替换的时候很容易找到,通过关键字搜索 避免出错,我使用这个类的时候肯定不会出错,使用""的时候,偶尔中间多个空格那也就是错了 用常量更优雅一些。 o 阅读全文

posted @ 2018-06-05 09:53 EastChilde 阅读(459) 评论(0) 推荐(0)

导航