解决了client打不开的问题
原因是配置文件无法找到和读取,经过更改后,所有配置文件都叫config.properties,首字母不大写
This commit is contained in:
parent
ce03a93784
commit
4d194a9426
|
|
@ -1,4 +1,4 @@
|
||||||
#Sat, 13 Jan 2024 10:35:51 +0800
|
#Sat, 13 Jan 2024 19:28:41 +0800
|
||||||
|
|
||||||
|
|
||||||
K\:\\OJ\\client=
|
K\:\\OJ\\client=
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
||||||
#update Config.properties
|
#update Config.properties
|
||||||
#Fri Jan 12 20:59:09 CST 2024
|
#Sat Jan 13 19:28:55 CST 2024
|
||||||
isCppRelative=true
|
isCppRelative=true
|
||||||
isJavaRelative=true
|
isJavaRelative=true
|
||||||
Username=felix
|
Username=felix
|
||||||
|
|
@ -8,7 +8,7 @@ URLip=106.15.36.190
|
||||||
relativeCCompilerDir=\\MinGW\\bin
|
relativeCCompilerDir=\\MinGW\\bin
|
||||||
JavaRelative=-1
|
JavaRelative=-1
|
||||||
JavaCompileDir=
|
JavaCompileDir=
|
||||||
MinGWRelative=2
|
|
||||||
Debug=1
|
Debug=1
|
||||||
URLport=80
|
MinGWRelative=2
|
||||||
relativeCppCompilerDir=\\MinGW\\bin
|
relativeCppCompilerDir=\\MinGW\\bin
|
||||||
|
URLport=80
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -26,7 +26,7 @@ public class Config {
|
||||||
public static final Properties prop= new Properties();
|
public static final Properties prop= new Properties();
|
||||||
static{
|
static{
|
||||||
try {
|
try {
|
||||||
InputStream in = new FileInputStream(common.FileFinder.findFile("Config.properties"));
|
InputStream in = new FileInputStream(common.FileFinder.findFile("config/config.properties"));
|
||||||
prop.load(in);
|
prop.load(in);
|
||||||
in.close();
|
in.close();
|
||||||
IPaddress = prop.getProperty("IPaddress");
|
IPaddress = prop.getProperty("IPaddress");
|
||||||
|
|
@ -62,7 +62,7 @@ public class Config {
|
||||||
}
|
}
|
||||||
public static void save(){
|
public static void save(){
|
||||||
try {
|
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");
|
prop.store(fos, "update Config.properties");
|
||||||
fos.close();
|
fos.close();
|
||||||
} catch (FileNotFoundException ex) {
|
} catch (FileNotFoundException ex) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ import java.util.List;
|
||||||
import javax.xml.namespace.QName;
|
import javax.xml.namespace.QName;
|
||||||
import org.apache.cxf.endpoint.Client;
|
import org.apache.cxf.endpoint.Client;
|
||||||
import org.apache.cxf.service.factory.ServiceConstructionException;
|
import org.apache.cxf.service.factory.ServiceConstructionException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author ytxlo
|
* @author ytxlo
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue