获得徽章 6
- 代码AI插件,目前在用Bito和阿里的通义灵码,虽官宣Bito是基于GTP-4,但从实际体验来说,通义灵码更符合中国代码特色。不得不说AI确实提高了生产力。
赞过评论1 - #每天一个知识点# 初用idea插件Bito好不错,can generate codes,explain codes and generate Unit Test and so on,
等人赞过14 - #每天一个知识点# spring+lombok项目中@RequiredArgsConstructor(onConstructor = @__(@Autowired))的作用,自动生成一个包含必需参数的构造函数(比如final属性)。onConstructor 属性允许你指定构造函数上的其他注解,这样可以减少样板代码,提高代码的可读性和可维护性。未使用前的代码可能是这样:展开
赞过13 - #每天一个知识点# 利用spring的依赖注入可以快速的实现工厂模式中工厂的初始化,示例代码:Factory类中定义@Autowired
Map<String, SceneInterface> scenes = new ConcurrentHashMap<>();定义方法 SceneInterface get(String scene),调用:Factory.get("scene1")展开赞过22 - #每天一个知识点# 看同事代码发现更新sql更新这么写:Alter table <tablename> set <column>=XXX where conditons... 这么写比 update <tablename> set <column>=XXX where conditons... 有什么好处吗?
6点赞
![[赞]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_108.a6defc6.png)
![[疑问]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_31.606e7a5.png)
![[奋斗]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_29.2801857.png)