会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
eiffelzero
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
24
下一页
2024年1月19日
71. 简化路径
摘要: 原题链接 class Solution { public String simplifyPath(String path) { // 用栈保存路径 Deque<String> stack = new LinkedList<>(); for (String s : path.split("/")) {
阅读全文
posted @ 2024-01-19 09:49 Eiffelzero
阅读(13)
评论(0)
推荐(0)
2023年12月5日
Junit单元测试的Gradle设置
摘要: 官方文档 https://docs.gradle.org/current/userguide/java_testing.html test{ useJUnit() //指定使用junit执行测试。 // 打印test的进度 testLogging { events "PASSED", "STARTE
阅读全文
posted @ 2023-12-05 10:41 Eiffelzero
阅读(232)
评论(0)
推荐(0)
2023年11月17日
Spring事务
摘要: @Transactional @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented @Reflective public @interfac
阅读全文
posted @ 2023-11-17 11:28 Eiffelzero
阅读(71)
评论(0)
推荐(0)
2023年11月16日
Intellij, target JRE vesion doesn't match project jdk version
摘要: gradle 项目修改这里的gradle jvm
阅读全文
posted @ 2023-11-16 18:52 Eiffelzero
阅读(35)
评论(0)
推荐(0)
Junit单元测试的maven设置
摘要: 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
阅读(562)
评论(0)
推荐(0)
2023年10月24日
java.security.provider.getservice blocked
摘要: 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
阅读(217)
评论(0)
推荐(0)
2023年9月22日
SparkSql 写 Es
摘要: 官方文档 key 备注 es.write.operation index(默认)添加新数据,旧数据被替换,重新索引;create添加新数据,数据存在抛出异常;update 更新现有数据,不存在抛出异常,upsert 插入及更新 es.mapping.id _id es的doc_id 出仓脚本exg:
阅读全文
posted @ 2023-09-22 17:24 Eiffelzero
阅读(149)
评论(0)
推荐(0)
2023年9月21日
@EnableAspectJAutoProxy
摘要: 开启动态代理配置 官方文档 通过xml配置 <aop:aspectj-autoproxy proxy-target-class="true"/> 通过注解配置 @EnableAspectJAutoProxy public class Application { public static void
阅读全文
posted @ 2023-09-21 18:43 Eiffelzero
阅读(101)
评论(0)
推荐(0)
Cpu 资源占用高排查
摘要: 查看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
阅读(35)
评论(0)
推荐(0)
cglib 代理类 自己equals自己 返回false
摘要: 简单的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
阅读(57)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
24
下一页
公告