随笔分类 - Java
摘要:toString package org.example.c; public class A { public static String toString(Object[] array) { if (array == null) return "null"; StringBuilder strin
阅读全文
摘要: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
阅读全文
摘要:static def b(Closure closure) { println(closure) println '~' * 50 println(closure()) println '~' * 50 closure 555 println '~' * 50 closure b: 666, c:
阅读全文
摘要:希尔排序 public class Sort{ public static void main(String[] args){ Random random = new Random(System.currentTimeMillis()); int[] ints = new int[10]; for(
阅读全文
摘要:spring: mvc: view: prefix: / # 以webapp作为起点 suffix: .jsp
阅读全文
摘要:
阅读全文
摘要:数据收集 import java.util.stream.Collectors; import java.util.stream.Stream; public class B{ public static void main(String[] args){ List<Integer> l1 = St
阅读全文
摘要:类名::引用实例方法Java 类名只能引用静态方法, 类名引用实例方法是 拿第一个参数作为方法的调用者 import java.util.function.BiFunction; import java.util.function.Function; public class addThen{ pu
阅读全文
摘要:java.util.function 定义了一些预定义FuncationInterface Supplier: import java.util.function.Supplier; public class addThen{ public static void main(String[] arg
阅读全文
摘要:VisualVM: Plugins Centers
阅读全文
摘要:<dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>3.3.0</version> </dependency> Code Generation Library: package io.veer.r
阅读全文
摘要:Teacher: package io.vend.velocity.vend; public class Teacher implements Cloneable{ private String name; public Teacher(String name){ this.name = name;
阅读全文
摘要:MySQL: jdbc: mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=fals
阅读全文
摘要:Java之Filter - Zh1z3ven - 博客园 (cnblogs.com) package io.veal.filter; import javax.servlet.*; import java.io.IOException; public class FilterA implements
阅读全文
摘要:测试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
阅读全文
摘要:log4j2 + slf4j <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.36</version> </dependency> <dependency> <grou
阅读全文
摘要:Service Provider Interface:
阅读全文