1:添加spring-data-redis1.7.1相关jar及测试代码
2:添加fastdfs的相关jar及测试代码 3:修改某些系统文件中项目名称为maat_service(有些系统配置文件里面的项目名称没有改过来)
This commit is contained in:
80
src/main/java/com/nis/web/service/fdfs/FastDFSFile.java
Normal file
80
src/main/java/com/nis/web/service/fdfs/FastDFSFile.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package com.nis.web.service.fdfs;
|
||||
|
||||
/**
|
||||
* <p>Title: FastDFSFile.java</p>
|
||||
* <p>Description: </p>
|
||||
* <p>Company: IIE</p>
|
||||
* @author rkg
|
||||
* @date 2018年5月16日
|
||||
*
|
||||
*/
|
||||
|
||||
public class FastDFSFile extends FileManagerConfig {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private byte[] content;
|
||||
private String name;
|
||||
private String ext;
|
||||
private String length;
|
||||
private String author = FILE_DEFAULT_AUTHOR;
|
||||
|
||||
public FastDFSFile(byte[] content, String ext) {
|
||||
this.content = content;
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public FastDFSFile(byte[] content, String name, String ext) {
|
||||
this.content = content;
|
||||
this.name = name;
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public FastDFSFile(byte[] content, String name, String ext, String length, String author) {
|
||||
this.content = content;
|
||||
this.name = name;
|
||||
this.ext = ext;
|
||||
this.length = length;
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public byte[] getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(byte[] content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getExt() {
|
||||
return ext;
|
||||
}
|
||||
|
||||
public void setExt(String ext) {
|
||||
this.ext = ext;
|
||||
}
|
||||
|
||||
public String getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public void setLength(String length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user