SELECT MIN (DECODE (TO_CHAR (DAYS, 'D'), 1, TO_CHAR (DAYS, 'FMDD'))) AS SUN, MIN (DECODE (TO_CHAR (DAYS, 'D'), 2, TO_CHAR (DAYS, 'FMDD'))) AS MON, MIN (DECODE (TO_CHAR (DAYS, 'D'), 3, TO_CHAR (DAYS, 'FMDD'))) AS TUE, MIN (DECODE (TO_CHAR (DAYS, 'D'), 4, TO_CHAR (DAYS, 'FMDD'))) AS WED, MIN (DECODE (TO_CHAR (DAYS, 'D'), 5, TO_CHAR (DAYS, 'FMDD'))) AS THU, MIN (DECODE (TO_CHAR (DAYS, 'D'), 6, TO_C..
pom.xml파일에서 톰캣에 대한 plugin정보를 기재해준다. org.apache.maven.plugins maven-war-plugin 2.1.1 src/main/webapp src/main/webapp/WEB-INF/web.xml org.codehaus.mojo tomcat-maven-plugin 1.1 war 9080 / UTF-8 UTF-8 org.apache.tomcat.maven tomcat7-maven-plugin 2.2 80 / -Xms256m -Xmx768m -XX:MaxPermSize=256m 위의 내용을 기재 한 후 maven build 실행시 Goal부분에 tomcat:run으로 톰캣구동
public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); System.out.println("URL 입력 : "); String spec = sc.nextLine(); System.out.println("저장 할 경로 입력 : "); String savePath = sc.nextLine(); URL url = new URL(spec); InputStream is = url.openStream(); BufferedReader br = new BufferedReader(new InputStreamReader(is,"UTF-8")); // BufferedWriter bw = new Buffere..
public static void main(String[] args) throws IOException { long startTime = System.currentTimeMillis(); String path = 파일경로; // String copyPath = 파일경로; String copyPath = 파일경로; //1차 스트림 파일장치에 직접 연결되면서 2차 스트림의 생성자로 주입이 될 스트림. // FileInputStream fis = null; // FileOutputStream fos = null; //2차스트림 중 Buffer의 기능을 가진 스트림을 사용하여 속도향상. BufferedInputStream bis = null; BufferedOutputStream bos = null; try {..
public static void main(String[] args) throws IOException { long startTime = System.currentTimeMillis(); String path = "파일경로"; String copyPath = "파일경로"; FileInputStream fis = null; FileOutputStream fos = null; try { fis = new FileInputStream(path); fos = new FileOutputStream(copyPath); int res = -1; //파일의 끝에 도달하면 -1반환 while((res = fis.read()) != -1){ //읽어오는 메서드(read) fos.write(res); //읽어온 값을 작성하..