解决了client打不开的问题

原因是配置文件无法找到和读取,经过更改后,所有配置文件都叫config.properties,首字母不大写
This commit is contained in:
Jered Ye 2024-01-13 19:30:09 +08:00
parent ce03a93784
commit 4d194a9426
19 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#Sat, 13 Jan 2024 10:35:51 +0800
#Sat, 13 Jan 2024 19:28:41 +0800
K\:\\OJ\\client=

View File

@ -1,5 +1,5 @@
#update Config.properties
#Fri Jan 12 20:59:09 CST 2024
#Sat Jan 13 19:28:55 CST 2024
isCppRelative=true
isJavaRelative=true
Username=felix
@ -8,7 +8,7 @@ URLip=106.15.36.190
relativeCCompilerDir=\\MinGW\\bin
JavaRelative=-1
JavaCompileDir=
MinGWRelative=2
Debug=1
URLport=80
MinGWRelative=2
relativeCppCompilerDir=\\MinGW\\bin
URLport=80

View File

@ -0,0 +1,3 @@
19:28:53 class java.io.FileNotFoundExceptionhttp://106.15.36.190:80/oj/SoftwareVersionMAction!DownLoad.action?versionId=null
19:28:53 class java.io.FileNotFoundExceptionhttp://106.15.36.190:80/oj/SoftwareVersionMAction!DownLoad.action?versionId=null
19:28:53 class java.io.FileNotFoundExceptionhttp://106.15.36.190:80/oj/SoftwareVersionMAction!DownLoad.action?versionId=null

View File

View File

@ -26,7 +26,7 @@ public class Config {
public static final Properties prop= new Properties();
static{
try {
InputStream in = new FileInputStream(common.FileFinder.findFile("Config.properties"));
InputStream in = new FileInputStream(common.FileFinder.findFile("config/config.properties"));
prop.load(in);
in.close();
IPaddress = prop.getProperty("IPaddress");
@ -62,7 +62,7 @@ public class Config {
}
public static void save(){
try {
FileOutputStream fos = new FileOutputStream(common.FileFinder.findFile("Config.properties"));
FileOutputStream fos = new FileOutputStream(common.FileFinder.findFile("config/config.properties"));
prop.store(fos, "update Config.properties");
fos.close();
} catch (FileNotFoundException ex) {

View File

@ -31,7 +31,6 @@ import java.util.List;
import javax.xml.namespace.QName;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.service.factory.ServiceConstructionException;
/**
*
* @author ytxlo

Binary file not shown.

Binary file not shown.