随笔分类 -  Java

摘要:JVM 的 TLAB(Thread-Local Allocation Buffer)是什么? TLAB(Thread-Local Allocation Buffer)简介 TLAB(Thread-Local Allocation Buffer) 是 JVM 中堆内存管理的一种优化技术,用于减少多线程 阅读全文
posted @ 2024-12-10 18:36 Eiffelzero 阅读(422) 评论(0) 推荐(0)
摘要:问题: Fatal error compiling: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac. 阅读全文
posted @ 2024-06-14 18:03 Eiffelzero 阅读(869) 评论(0) 推荐(0)
摘要:问题描述: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validator' defined in clas 阅读全文
posted @ 2024-06-14 17:33 Eiffelzero 阅读(120) 评论(0) 推荐(0)
摘要:问题: 通过debug发现result.removeAll的时候 删不了 public boolean equals(Object obj) { return obj instanceof OspSpringBoot2Initializer.OspBean && this.bean.equals(( 阅读全文
posted @ 2024-06-14 17:27 Eiffelzero 阅读(24) 评论(0) 推荐(0)
摘要:官方文档 https://docs.gradle.org/current/userguide/java_testing.html test{ useJUnit() //指定使用junit执行测试。 // 打印test的进度 testLogging { events "PASSED", "STARTE 阅读全文
posted @ 2023-12-05 10:41 Eiffelzero 阅读(214) 评论(0) 推荐(0)
摘要:@Transactional @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented @Reflective public @interfac 阅读全文
posted @ 2023-11-17 11:28 Eiffelzero 阅读(52) 评论(0) 推荐(0)
摘要:gradle 项目修改这里的gradle jvm 阅读全文
posted @ 2023-11-16 18:52 Eiffelzero 阅读(21) 评论(0) 推荐(0)
摘要:maven 官方文档: https://maven.apache.org/surefire/maven-surefire-plugin/usage.html maven是通过插件 maven-surefire-plugin 来执行单元测试 指定test文件的之间的执行顺序 <plugin> <gro 阅读全文
posted @ 2023-11-16 09:20 Eiffelzero 阅读(523) 评论(0) 推荐(0)
摘要:JDK版本: JDK8u192 bug: https://bugs.openjdk.org/browse/JDK-8206333 堆栈: "Common-Business-Thread-572" Id=1723 BLOCKED at java.security.Provider.getService 阅读全文
posted @ 2023-10-24 09:39 Eiffelzero 阅读(192) 评论(0) 推荐(0)
摘要:okHttp 发送表单请求 需要添加依赖 compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.0' import okhttp3.FormBody; import okhttp3.OkHttpClient; imp 阅读全文
posted @ 2023-09-19 09:07 Eiffelzero 阅读(79) 评论(0) 推荐(0)
摘要:Mockito 官网 注解 阅读全文
posted @ 2023-03-15 20:45 Eiffelzero 阅读(45) 评论(0) 推荐(0)
摘要:1. Guava github google的开源本地缓存 堆内缓存 需要考虑GC问题 不用考虑序列化和反序列化问题 2. caffeine github Caffeine provides an in-memory cache using a Google Guava inspired API. 阅读全文
posted @ 2023-01-28 10:18 Eiffelzero 阅读(39) 评论(0) 推荐(0)
摘要:1. BlockingCache 2. FifoCache 3. LruCache 4. SoftCache 5. WeakCache 6. LoggingCache 7. ScheduledCache 8. SynchronizedCache 9. PerpetualCache 10. Seria 阅读全文
posted @ 2023-01-28 10:13 Eiffelzero 阅读(33) 评论(0) 推荐(0)