我们在开发系统的时候,经常会遇到这种需求数据库表中的行被更新时需要自动更新某些列。 数据库 比如下面的Person表有一列UpdateTime,这列数据要求在行被更新后自动更新为系统的当前时间。 Person表: 我们还有一个Book表,它没有UpdateTime列,那么这个表的数据在行更新时不要求 ...
分类:
数据库 时间:
2018-10-11 16:51:43
阅读次数:
337
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:
编程语言 时间:
2018-10-09 13:57:54
阅读次数:
264
200 OK 请求已成功,请求所希望的响应头或数据体将随此响应返回。出现此状态码是表示正常状态。 200状态码中,浏览器没有跟服务器确认,直接用了浏览器缓存; 而 304 Not Modified 假如某个304响应指明了当前某个实体没有缓存,那么缓存系统必须忽视这个响应,并且重复发送不包含限制条件 ...
分类:
Web程序 时间:
2018-10-09 12:15:41
阅读次数:
272
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:
其他好文 时间:
2018-10-07 23:30:32
阅读次数:
291
前提 上一篇文章复习介绍了JDK中注解的底层实现,跟注解一样比较常用,但是底层实现比较神秘的还有枚举类型。趁着国庆假期的最后两天,把JDK中枚举的底层实现也进行一次探究。 通过例子查找本质 在探究JDK注解的底层实现的时候,因为预先参考了不少资料,所以整个过程有点"未卜先知"的意味,这里尝试用未知的 ...
分类:
其他好文 时间:
2018-10-06 23:09:24
阅读次数:
198
RuntimeError:one of the variables needed for gradient computation has been modified by an inplace operation 原因:0.4.0把Varible和Tensor融合为一个Tensor,inplace ...
分类:
其他好文 时间:
2018-09-24 00:26:36
阅读次数:
2407
在看Spring中HttpServlet的Service方法时,对于GET请求,代码逻辑如下: 其中涉及的关键信息是修改时间,这就涉及到浏览器数据缓存问题。以下对个缓存机制进行简单总结,可用于请求的优化。(本文中的图都摘自其他文章) Last-Modified和If-Modified-Since 当 ...
分类:
Web程序 时间:
2018-09-22 12:56:38
阅读次数:
252
- chrome: https://www.google.cn/chrome/ - vimnium - 屏保: https://fliqlo.com/ - 分屏:https://www.spectacleapp.com/ - homebrew: https://brew.sh/ - vscode - ...
分类:
其他好文 时间:
2018-09-22 00:50:14
阅读次数:
199
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:
其他好文 时间:
2018-09-21 10:51:35
阅读次数:
173
Invalidate方法通知Windows应该重新绘制表单的整个表面。最重要的是Invalidate不会立即强制执行绘制操作。 Windows只是存储请求,并且只会响应它当前程序完全执行后,并且只要系统中没有其他待处理事件。 Windows故意延迟绘画操作,因为它是最耗时的操作之一。有时,这种延迟, ...