V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  qgs  ›  全部回复第 1 页 / 共 2 页
回复总数  37
1  2  
4 天前
回复了 IbukiSuika 创建的主题 程序员 软考成绩出来了,大家过了么
中级数据库系统工程师飘过 52 49
33 天前
回复了 RunPiggy 创建的主题 OpenAI 最近 ChatGPT 用着好卡,大家有同感吗
刷新就一直让点我是真人
37 天前
回复了 Guidoo 创建的主题 程序员 明天软考 大家报名了吗
海淀被安排到大兴,下次报名写昌平能安排到海淀嘛
分母
96 天前
回复了 luzemin 创建的主题 程序员 HackerNews 上看到的 [丑丑头像生成器]
分子
2023-06-02 22:34:20 +08:00
回复了 EyreFree 创建的主题 WWDC 又又又被 Apple 官网推荐了!?
分母
2023-04-16 10:54:31 +08:00
回复了 panky 创建的主题 酷工作 [业余兴趣项目] 找 Java 后端
楼主还在吗? dng6cWluZ3Vpcw==
2023-02-22 23:27:10 +08:00
回复了 caEsIum 创建的主题 问与答 2023 年还能润么?
386 次点击,没人理😂
分母
2022-06-15 16:56:54 +08:00
回复了 zkqiang 创建的主题 奇思妙想 如果你想做自媒体视频号,你会做什么?
我对 电影拍摄手法 很感兴趣
现在都是解析电影电视剧内容的,没怎么见解析拍摄手法的,比如 镜头调度,布局,专场;我非常喜欢 《哈利波特与阿兹卡班囚徒》
感觉门槛太高了
2022-04-11 09:45:24 +08:00
回复了 followyourheart 创建的主题 Java 单例模式 双检测问题请教
idea 里面在第一个 if 上面,按两次 ctrl + f1 ,会出现解释

Double-checked locking
Inspection info: Reports double-checked locking.
Double-checked locking tries to initialize a field on demand and in a thread-safe manner while avoiding the cost of synchronization. Unfortunately it is not thread-safe when used on a field that is not declared volatile. When using Java 1.4 or earlier, double-checked locking doesn't work even with volatile fields. Read the article linked above for the detailed explanation of the problem.
Example of an incorrect double-checked locking:
class Foo {
private Helper helper = null;
public Helper getHelper() {
if (helper == null)
synchronized(this) {
if (helper == null) helper = new Helper();
}
return helper;
}
}
// other functions and members...
}
2021-07-12 17:03:28 +08:00
回复了 freedom1988 创建的主题 推广 [年中赠书] 送 3 本高级前端程序员面试笔试宝典
分母
2021-07-01 08:41:19 +08:00
回复了 SmartKeyerror 创建的主题 推广 盖楼抽奖 | 感谢 V 站老哥们的认同和鼓励
分母
问同事,感觉这就是 只缘身在此山中
2021-03-10 15:52:34 +08:00
回复了 JasonLaw 创建的主题 编程 使用 MyBatis,怎么优雅地获取到 insert 时自动生成的 id?
官方文档
```
这个例子展示了如何使用 @SelectKey 注解来在插入后读取数据库自增列的值:

@Insert("insert into table2 (name) values(#{name})")
@SelectKey(statement="call identity()", keyProperty="nameId", before=false, resultType=int.class)
int insertTable2(Name name);
```
2021-01-28 19:10:08 +08:00
回复了 CloseToWheat 创建的主题 Java 想学造火箭了,有说明书嘛~
字节 阿里
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2282 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 114ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
Developed with CodeLauncher
♥ Do have faith in what you're doing.