tao.mo

打包小程序

mt
2023年7月26日17:27:28
package com.erry;
public class Main {
public static void main(String[] args){
}
}
......
package com.erry.utils;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;
public class ConfigUtils {
public static String readSysProperty(String key) {
Properties properties = new Properties();
String value = "";
try {
InputStream inputStream = Object.class.getResourceAsStream("/sys_config.properties");
InputStreamReader isr = new InputStreamReader(inputStream, "GBK");
BufferedReader br = new BufferedReader(isr);
properties.load(br);
value = properties.getProperty(key);
} catch (Exception e) {
e.printStackTrace();
}
return value;
}
}
#需要打包项目地址
project_address=D:/workspace/prjIClear
#需要保留目录
reserve_folder=
\ No newline at end of file