一.在CentOS更新后,并不会自动删除旧内核.所以在启动选项中会有多个内核选项,可以手动使用以下命令删除多余的内核:(正常下,第一个选项正常启动,第二个选项急救模式启动(系统出项问题不能正常启动时使用并修复系统)) 1.查看系统当前内核版本: # uname -a Linux localhost.localdomain 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 201 GNU/Linux2.查看系统中全部的内核RPM包:
原文地址:http://blog.csdn.net/sushengmiyan/article/details/50360451 Generated and default property values 生成的和默认的属性值 The database sometimes generates a property value, usually when you insert a row for the first time. 数据库通常会在第一次插入一条数据的时候产生一个属性值. Examples
---Oracle数据库更新时间字段数据时的sql语句---格式化时间插入update t_user u set u.name='pipi',u.modifytime=to_date('2015-10-07 00:00:00','YYYY-MM-DD HH24:MI:SS') where u.uid = 11111---使用数据库系统当前时间update t_user u set u.name='pipi',u.modifytime=sysdate where u.uid = 11111
在数据库里设置默认值current_timestamp可以维护创建时间,设置on update current_timestamp 可以维护更新时间.在JPA中应该如何去做呢?这里还是以上篇Topic为基础,给这个类添加这两个字段. @Entity @Table public class Topic implements Serializable{ private static final long serialVersionUID = -7752115605498533357L; @Id @G
首先创建一个BaseModel,自动生成创建时间和更新时间 @SuppressWarnings("serial") @MappedSuperclass public class BaseModel implements Serializable{ @Temporal(TemporalType.TIMESTAMP) @Column(insertable=false, updatable=false) @CreationTimestamp protected Date createTime
Generated and default property values 生成的和默认的属性值 The database sometimes generates a property value, usually when you insert a row for the first time. 数据库通常会在第一次插入一条数据的时候产生一个属性值. Examples of database-generated values are a creation timestamp, a defaul