上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
摘要: 官方文档 https://docs.gradle.org/current/userguide/java_testing.html test{ useJUnit() //指定使用junit执行测试。 // 打印test的进度 testLogging { events "PASSED", "STARTE 阅读全文
posted @ 2023-12-05 10:41 Eiffelzero 阅读(192) 评论(0) 推荐(0)
摘要: @Transactional @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented @Reflective public @interfac 阅读全文
posted @ 2023-11-17 11:28 Eiffelzero 阅读(18) 评论(0) 推荐(0)
摘要: gradle 项目修改这里的gradle jvm 阅读全文
posted @ 2023-11-16 18:52 Eiffelzero 阅读(11) 评论(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 阅读(469) 评论(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 阅读(169) 评论(0) 推荐(0)
摘要: 官方文档 key 备注 es.write.operation index(默认)添加新数据,旧数据被替换,重新索引;create添加新数据,数据存在抛出异常;update 更新现有数据,不存在抛出异常,upsert 插入及更新 es.mapping.id _id es的doc_id 出仓脚本exg: 阅读全文
posted @ 2023-09-22 17:24 Eiffelzero 阅读(106) 评论(0) 推荐(0)
摘要: 开启动态代理配置 官方文档 通过xml配置 <aop:aspectj-autoproxy proxy-target-class="true"/> 通过注解配置 @EnableAspectJAutoProxy public class Application { public static void 阅读全文
posted @ 2023-09-21 18:43 Eiffelzero 阅读(75) 评论(0) 推荐(0)
摘要: 查看java进程 ps aux | grep java 或者 ps -ef | grep java 查看java进程 线程信息 使用top -p [PID] -H 观察该进程中所有线程的资源占用 top -p [PID] -H exg: top -p 289 -H 使用jstack查看线程快照 js 阅读全文
posted @ 2023-09-21 16:47 Eiffelzero 阅读(12) 评论(0) 推荐(0)
摘要: 简单的cglib代理示例 普通的 Java 类 package cglib; public class UserService { public void saveUser(String username) { System.out.println("Saving user: " + usernam 阅读全文
posted @ 2023-09-21 09:48 Eiffelzero 阅读(32) 评论(0) 推荐(0)
摘要: 版本: com.alibaba:fastjson:1.2.83 描述: 反序列化时,会陷入死循环 JSON:[""] 引起bug代码: List<Map<String, Object>> map = JSON.parseObject("[\"\"]", new TypeReference<List< 阅读全文
posted @ 2023-09-20 20:45 Eiffelzero 阅读(339) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 23 下一页
点击右上角即可分享
微信分享提示