leejoker's recent timeline updates
leejoker

leejoker

V2EX member #222553, joined on 2017-03-23 11:44:54 +08:00
leejoker's recent replies
Jun 13, 2025
Replied to a topic by BlackHole1 分享创造 OOMOL Studio 更新:更完善的工作流 IDE
看起来挺有意思的, 试试看~
集成
之前做过一些图像检测算法的继承,性能还行
可以试试 deeplearning4j 里边的 python4j ,走的是 javacpp 调用 cpython
May 15, 2023
Replied to a topic by iyobucuo 推广 [抽奖 4 斤樱桃] 烟台大樱桃 - 感谢 - 感悟
凑个热闹
Nov 29, 2020
Replied to a topic by psw84 推广 NUC 黑果套餐 继续开车 有福利!
万一中了呢~
Oct 28, 2020
Replied to a topic by sunzy Java 如何扫描项目中所有 FeignClient 的注解属性信息
Oct 28, 2020
Replied to a topic by sunzy Java 如何扫描项目中所有 FeignClient 的注解属性信息
是的 XD,已经改了
Oct 28, 2020
Replied to a topic by sunzy Java 如何扫描项目中所有 FeignClient 的注解属性信息
大概是这样,spring 里的 bean 是通过代理的方式注册的,需要用代理的方式去获取。
代码是从我写的工具里截取的: https://github.com/leejoker/feign-dev-tool-starter
Oct 28, 2020
Replied to a topic by sunzy Java 如何扫描项目中所有 FeignClient 的注解属性信息
beans.forEach((k, v) -> {
try {
if (Proxy.isProxyClass(v.getClass())) {
InvocationHandler ih = Proxy.getInvocationHandler(v);
Field targetField = ih.getClass().getDeclaredField("target");
targetField.setAccessible(true);

Target target = (Target) targetField.get(ih);
Field nameField = target.getClass().getDeclaredField("name");
nameField.setAccessible(true);

String clientName = (String) nameField.get(target);

Field urlField = target.getClass().getDeclaredField("url");
urlField.setAccessible(true);
String url = (String) urlField.get(target);

System.out.println("clientName: " + clientName);
System.out.println("url: " + url);
}
} catch (Exception e) {
log.error("失败,exception={}", ExceptionUtils.getStackTrace(e));
}
});
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6023 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 03:24 · PVG 11:24 · LAX 20:24 · JFK 23:24
♥ Do have faith in what you're doing.