isir1234 最近的时间轴更新
isir1234
ONLINE

isir1234

V2EX 第 417821 号会员,加入于 2019-06-02 17:07:01 +08:00
3 G 54 S 45 B
isir1234 最近回复了
create extension hstore;

SELECT 姓名, 日期, (x).key, (x).value
FROM (SELECT 姓名, 日期, each(hstore(分数表) - ARRAY ['姓名', '日期']) as x FROM 分数表) tmp;
每日一题
2021-02-20 13:41:21 +08:00
回复了 zhuawadao 创建的主题 Java 求大佬们解答 CountDownLatch 使用中的一个问题
1. state 初始 10000,
2. 线程 1 执行了 countDown => state=9999
3. 线程 2 执行了 countDown => state=9998
4. 线程 1 执行 getCount => 输出 9998
5. 线程 2 执行 getCount => 输出 9998
select student_id, gap
from (select student_id,
last_value(score) over (partition by student_id order by created_at) -
first_value(score) over (partition by student_id order by created_at) AS gap,
row_number() over (partition by student_id order by created_at desc) rn
from exam) tmp
where rn = 1;
2020-10-26 15:19:38 +08:00
回复了 Hanggi 创建的主题 程序员 你们在实际工作中用过哪些代码自动生成技术?
魔改了一下 start.spring.io, 根据 sql 生成 domain, mapper, service, controller

http://start.jiangy.me/
2020-10-08 21:44:01 +08:00
回复了 hello2060 创建的主题 Java 问个 Gatling 的问题
可以用
constantUsersPerSec(50) during (20000)
或者
rampUsers(1000000) during (20000)
2020-09-29 11:39:59 +08:00
回复了 PeiXyJ 创建的主题 程序员 Spring Security 官方文档学习
Spring Security 的 reference 第一遍看的时候真的是一脸懵逼

可以先看 <<Pro Spring Security>> 这本书
YouTube 上也有不少相关的 talk

也可以写个最简单的 demo, debug 源码走一下 filter 和认证 /授权流程
Spring Cloud Hoxton.SR5 版本的 Gateway 确实是有 file descriptor 无限增长的问题的, 可以作为一个排查点.
可以先查看每个进程打开的文件数:
ps -opid= -ax | xargs -L 1 -I{} -- sudo bash -c 'echo -n "{} ";sudo lsof -p {} 2>/dev/null | wc -l' | sort -nr -k2
2020-09-05 15:33:30 +08:00
回复了 RedBeanIce 创建的主题 Java CompletableFuture 使用交流(其实是困解)
runAsync 后加上异常处理试试

比如 CompletableFuture.runAsync(()->xxx).exceptionally(e -> {
// print exception here
return null;
}))
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3452 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 11:25 · PVG 19:25 · LAX 04:25 · JFK 07:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.