Study/Spring framework

전자정부 프레임워크 에러 : The method getProperty(String) in the type EgovProperties is not applicable for the arguments (String, String) EgovClntInfo.java

nobang 2018. 9. 7. 00:50
728x90

EgovClntInfo 에서 getProperty method가 없거나 인자가 맞지 않을 때 나는 에러다.


The method getProperty(String) in the type EgovProperties is not applicable for the arguments (String, String)


String 인자를 2개 받아야 하는데 1개만 있는게 정의되어 있음.

src/main/java/egovframework/com/cmm/service/EgovProperties.java

해당 method의 주석 풀기.

다른데에서도 호출할 수 있도록 다른 method들도 다 푼다.

if (Globals.OS_TYPE.equals("UNIX")) {
    String[] command = { EgovProperties.getProperty(Globals.SHELL_FILE_PATH, "SHELL." + Globals.OS_TYPE + ".getDrctryByOwner"),
                            fullpath.substring(0, fullpath.lastIndexOf("/")), fullpath.substring(fullpath.lastIndexOf("/"), fullpath.length()), owner };
   p = Runtime.getRuntime().exec(command);
   p.waitFor();
} else if (Globals.OS_TYPE.equals("WINDOWS")) {
   String command = EgovProperties.getProperty(Globals.SHELL_FILE_PATH, "SHELL." + Globals.OS_TYPE + ".getDrctryByOwner");
   p = Runtime.getRuntime().exec(command);
   p.waitFor();
                } 


728x90