获得徽章 6
赞了这篇文章
赞了这篇文章
代码AI插件,目前在用Bito和阿里的通义灵码,虽官宣Bito是基于GTP-4,但从实际体验来说,通义灵码更符合中国代码特色。不得不说AI确实提高了生产力。
评论
1
赞了这篇沸点
#每天一个知识点# 初用idea插件Bito好不错,can generate codes,explain codes and generate Unit Test and so on,
1
4
#每天一个知识点# spring+lombok项目中@RequiredArgsConstructor(onConstructor = @__(@Autowired))的作用,自动生成一个包含必需参数的构造函数(比如final属性)。onConstructor 属性允许你指定构造函数上的其他注解,这样可以减少样板代码,提高代码的可读性和可维护性。未使用前的代码可能是这样:
展开
1
3
赞了这篇沸点
#每天一个知识点# 利用spring的依赖注入可以快速的实现工厂模式中工厂的初始化,示例代码:Factory类中定义@Autowired
Map<String, SceneInterface> scenes = new ConcurrentHashMap<>();定义方法 SceneInterface get(String scene),调用:Factory.get("scene1")
Map<String, SceneInterface> scenes = new ConcurrentHashMap<>();定义方法 SceneInterface get(String scene),调用:Factory.get("scene1")
展开
2
2
#每天一个知识点# 看同事代码发现更新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_29.2801857.png)