java FileLock 简介

FileLock 底层实现依赖于操作系统,理论上提供跨越不同进程、不同编程语言的文件锁(但不是保证)。

HttpURLConnection disconnect

HttpURLConnection.disconnect() 会关闭底层连接。如果要复用连接,使用 HttpURLConnection.getInputSteam().close()。

mysql generated column

mysql generated column支持Virtual和Stored两种模式,默认是Virtual。可以使用virtual + index 加速检索json type字段。