소스 검색

no message

xiaochan 1 년 전
부모
커밋
d60f1710f9
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/thyyxxk/webserver/WebServerApplication.java

+ 1 - 2
src/main/java/thyyxxk/webserver/WebServerApplication.java

@@ -23,11 +23,10 @@ import java.net.InetAddress;
 @ForestScan(basePackages = "thyyxxk.webserver.service.externalhttp")
 @Slf4j
 public class WebServerApplication {
-    public static String OS;
 
     public static void main(String[] args) {
         ConfigurableApplicationContext application = SpringApplication.run(WebServerApplication.class, args);
-        OS = System.getProperty("os.name");
+        String OS = System.getProperty("os.name");
         ZipUtil.setDirectory(OS.startsWith("Windows") ? "D:\\" : "/home/web-server/temp/");
         try {
             log.info("Done-CY");