标签:upload system des server adf 服务 resource 内容 decrypt
File file = new File(this.getClass().getResource("").getPath());
System.out.println(file.getPath());
String path=file.getPath();
//path=path.substring(0,path.indexOf("WEB-INF"))+"upload\\Excel"+"\\"+"import.txt"; //服务器专用
path=path.substring(0,path.indexOf("target"))+"src\\main\\webapp\\upload\\Excel"+"\\"+"import.txt";
String info=(sqlserver.readFile(path));
info=info.replaceAll("\r|\n", "");
info=info.substring(0,info.length()-1);
String info1[]=info.split("-");
String ip=DesUtil.decrypt(info1[0]);
String databaseName=DesUtil.decrypt(info1[1]);
String usename=DesUtil.decrypt(info1[2]);
String password=DesUtil.decrypt(info1[3]);
标签:upload system des server adf 服务 resource 内容 decrypt
原文地址:https://www.cnblogs.com/dawn-and-night/p/11127173.html