随笔分类 -  Java

摘要:toString package org.example.c; public class A { public static String toString(Object[] array) { if (array == null) return "null"; StringBuilder strin 阅读全文
posted @ 2023-11-17 15:35 ascertain 阅读(3) 评论(0) 推荐(0) 编辑
摘要:The switch expression has an additional lambda-like syntax and it can be used not only as a statement, but also as an expression that evaluates to a s 阅读全文
posted @ 2023-04-09 17:39 ascertain 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-07 22:05 ascertain 阅读(31) 评论(0) 推荐(0) 编辑
摘要:static def b(Closure closure) { println(closure) println '~' * 50 println(closure()) println '~' * 50 closure 555 println '~' * 50 closure b: 666, c: 阅读全文
posted @ 2022-06-05 16:17 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要:希尔排序 public class Sort{ public static void main(String[] args){ Random random = new Random(System.currentTimeMillis()); int[] ints = new int[10]; for( 阅读全文
posted @ 2022-06-05 13:48 ascertain 阅读(40) 评论(0) 推荐(0) 编辑
摘要:spring: mvc: view: prefix: / # 以webapp作为起点 suffix: .jsp 阅读全文
posted @ 2022-05-30 15:37 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-25 23:41 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要:数据收集 import java.util.stream.Collectors; import java.util.stream.Stream; public class B{ public static void main(String[] args){ List<Integer> l1 = St 阅读全文
posted @ 2022-05-25 19:03 ascertain 阅读(40) 评论(0) 推荐(0) 编辑
摘要:类名::引用实例方法Java 类名只能引用静态方法, 类名引用实例方法是 拿第一个参数作为方法的调用者 import java.util.function.BiFunction; import java.util.function.Function; public class addThen{ pu 阅读全文
posted @ 2022-05-25 13:04 ascertain 阅读(66) 评论(0) 推荐(0) 编辑
摘要:java.util.function 定义了一些预定义FuncationInterface Supplier: import java.util.function.Supplier; public class addThen{ public static void main(String[] arg 阅读全文
posted @ 2022-05-25 12:11 ascertain 阅读(136) 评论(0) 推荐(0) 编辑
摘要:VisualVM: Plugins Centers 阅读全文
posted @ 2022-05-23 20:49 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要:<dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>3.3.0</version> </dependency> Code Generation Library: package io.veer.r 阅读全文
posted @ 2022-05-10 21:54 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要:Teacher: package io.vend.velocity.vend; public class Teacher implements Cloneable{ private String name; public Teacher(String name){ this.name = name; 阅读全文
posted @ 2022-05-10 18:45 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-09 12:54 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要:MySQL: jdbc: mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=fals 阅读全文
posted @ 2022-05-04 22:18 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要:Java之Filter - Zh1z3ven - 博客园 (cnblogs.com) package io.veal.filter; import javax.servlet.*; import java.io.IOException; public class FilterA implements 阅读全文
posted @ 2022-05-02 19:49 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:测试JWT package com.example.jwt; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTCreator; import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.algor 阅读全文
posted @ 2022-05-02 09:05 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-01 23:19 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要:log4j2 + slf4j <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.36</version> </dependency> <dependency> <grou 阅读全文
posted @ 2022-04-25 20:14 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:Service Provider Interface: 阅读全文
posted @ 2022-04-25 17:11 ascertain 阅读(46) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示