首页 > 代码库 > 小细节易错

小细节易错

1,在oracle中的表字段是Date类型,用hibernate反向工程生成的po类字段的注解中timestamp

@Temporal(TemporalType.TIMESTAMP)    @Column(name = "BECOME_ACTIVE", length = 7)    public Date getBecomeActive() {        return this.becomeActive;    }

 

2,上传文件要注意form表单中

enctype="multipart/form-data"

批量上传可用jquery-multifile.js

3,

小细节易错