上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: jshell> boolean blank = " ".isBlank();//true blank ==> true jshell> //去除字符串首尾空格 jshell> var var1 = " Java ".strip();// "Java" var1 ==> "Java" jshell> 阅读全文
posted @ 2020-08-11 09:53 宇枫 阅读(200) 评论(0) 推荐(0) 编辑
摘要: public class Testjdk11 { private static int a= 0; // private static var i =0;//不允许的方式 private static Object i =0; private static void varInit(/*var va 阅读全文
posted @ 2020-08-10 19:07 宇枫 阅读(1229) 评论(1) 推荐(0) 编辑
摘要: Math.abs(-2147483648) 结果还是-2147483648 需要转成long型才能输出正数,Math.abs(-2147483648L) =2147483648 阅读全文
posted @ 2020-07-24 17:58 宇枫 阅读(595) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { StringBuilder sb =new StringBuilder(); InputStream resourceAsStream = GetSourceTest.class.getResourceAsStream 阅读全文
posted @ 2020-07-13 17:15 宇枫 阅读(5579) 评论(0) 推荐(0) 编辑
摘要: private Map<String, String> getParamsFromFormDataByNames(HttpServletRequest request){ Map<String, String> map =new HashMap<>(); Enumeration<String> er 阅读全文
posted @ 2020-07-09 10:24 宇枫 阅读(15287) 评论(0) 推荐(0) 编辑
摘要: 语法错误:No enclosing instance of type VolatleTest is accessible. Must qualify the allocation with an enclosing instance of type VolatleTest (e.g. x.new A 阅读全文
posted @ 2020-06-29 09:20 宇枫 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 一、springboot +spring-plugin二、针对根据入参不同可能有不同实现逻辑的场景写个demo,如:针对支付宝或者微信支付渠道发起的支付请求1).引入相关依赖 <dependency> <groupId>org.springframework.plugin</groupId> <ar 阅读全文
posted @ 2020-06-24 12:29 宇枫 阅读(821) 评论(1) 推荐(0) 编辑
摘要: //注意:Number并没有实现Comparable private static <T extends Number & Comparable<? super T>> T max(T[] values) { if (values == null || values.length == 0) ret 阅读全文
posted @ 2020-06-17 15:18 宇枫 阅读(390) 评论(0) 推荐(0) 编辑
摘要: jvm 使用参数详细说明 参数 描述 -Xms4000m 初始化堆空间大小 4000m -Xmx4000m 最大堆空间大小 -Xmn1000m 年轻代空间大小 -Xss512k 设置线程空间大小 -XX:PermGen 设置永久代内存初始化大小,jdk1.8开始废弃永久代 -XX:MaxPermGe 阅读全文
posted @ 2020-06-17 10:56 宇枫 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 2020-06-09 09:49:42,329 ERROR restartedMain - LEAK: HashedWheelTimer.release() was not called before it's garbage-collected. See http://netty.io/wiki/ 阅读全文
posted @ 2020-06-09 09:54 宇枫 阅读(806) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页