java,
分享于 点击 35246 次 点评:33
java,
public class ApplicationPath {public static java.util.Properties param;
private static ApplicationPath instance = null;
private ApplicationPath() {
InputStream in = null;
try {
in = this.getClass().getResourceAsStream(
"/app.properties");
Properties p = new Properties();
p.load(in);
param = p;
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
in.close();
} catch (Exception e) {
}
}
}
public static synchronized ApplicationPath getInstance() {
if (instance == null) {
instance = new ApplicationPath();
}
return instance;
}
}
**************************************************************
DiskPath = D\:\\uploadFiles
templatePath = /person_picuter
xtsoft = \\xtsoft
FileUploadMethod = 1
#DiskPath =/weblogic/resources/uploadFiles
ftpHost = 192.168.2.220
ftpPort = 21
ftpUser = doc
ftpPassword = doc
initialSize = 100
maxSize = 1000
uploadfileSize=10
picuterSize=200
相关文章
- 暂无相关文章
用户点评