3 Star 1 Fork 1

piggsoft / ueditor-piggsoft

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Configuration.java 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
package com.piggsoft.ueditor.context;
import java.util.Map;
import com.alibaba.fastjson.JSON;
public class Configuration {
private String fieldName;
private String isBase64;
private String[] allowFiles;
private String filename;
private String[] filter;
private String dir;
private int count;
private String savePath;
private String rootPath;
private Long maxSize;
public static Configuration newInstance(Map<String, Object> conf) {
String json = JSON.toJSONString(conf);
Configuration configuration = JSON.parseObject(json, Configuration.class);
return configuration;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getIsBase64() {
return isBase64;
}
public void setIsBase64(String isBase64) {
this.isBase64 = isBase64;
}
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public String getSavePath() {
return savePath;
}
public void setSavePath(String savePath) {
this.savePath = savePath;
}
public String getRootPath() {
return rootPath;
}
public void setRootPath(String rootPath) {
this.rootPath = rootPath;
}
public String[] getAllowFiles() {
return allowFiles;
}
public void setAllowFiles(String[] allowFiles) {
this.allowFiles = allowFiles;
}
public String[] getFilter() {
return filter;
}
public void setFilter(String[] filter) {
this.filter = filter;
}
public Long getMaxSize() {
return maxSize;
}
public void setMaxSize(Long maxSize) {
this.maxSize = maxSize;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/piggsoft/ueditor-piggsoft.git
git@gitee.com:piggsoft/ueditor-piggsoft.git
piggsoft
ueditor-piggsoft
ueditor-piggsoft
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891