V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  qgs  ›  全部回复第 1 页 / 共 2 页
回复总数  33
1  2  
2 天前
回复了 luzemin 创建的主题 程序员 HackerNews 上看到的 [丑丑头像生成器]
分子
300 天前
回复了 EyreFree 创建的主题 WWDC 又又又被 Apple 官网推荐了!?
分母
347 天前
回复了 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   ·   我们的愿景   ·   实用小工具   ·   1365 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.