간단하네.. 1 2 3 4 5 6 7 8 9 10 11 12 13 const http = require('http'); // 읽는 키워드 function rqLis(req,res){ //request,response } http.createServer(rqLis); // 서버 생성 메서드 //require -- > 파일을 불러오는 키워드 cs 첫번째 방법 1 2 3 4 5 6 const http = require('http'); http.createServer(function(req,res){ // 익명의 함수를 호출하는것 }) Colored by Color Scripter cs 2번째 방법 1 2 3 4 5 6 const http = require('http'); http.createServer((re..
전체 글
프로그래밍 기술 및 저장소AdminController.java => 컨트롤러 AdminDAO. 인터페이스 java AdminDAOImpl.java 인터페이스 구현클랜스 .MemberVo.java 데이터 객체 레코드 저장 admin.xml 매핑..sql login.jsp admin.jsp 로그인 ADminDao 1 2 3 4 5 6 7 8 9 package com.example.spring05.model.member; public interface AdminDao { String login(MemberVo vo); } Colored by Color Scripter cs ADminDaoimpl.java 인터페이스 구현 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2..
Controller 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 @Controller public class uploadController { //첨부파일 저장할 디렉토리 @Resource(name = "upload_path") String upload_path; @RequestMapping("/upload/input.do") public String input() { return "upload/input"; //views /upload/input.jsp } @RequestMapping("upload/upload.do") public ModelAndVi..
https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload/1.4 Maven Repository: commons-fileupload » commons-fileupload » 1.4 The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications. commons-fileupload commons-fileupload 1.4 // https://mvnrepository.com/artifact/commons ..
Spring Legacy Project => Spring MVC project - spring02 프로젝트에서 설정파일 복사 : 1. pom.xml 복사 (11번 라인 태그부터 끝까지) 2. src/main/resources 하위에 mappers 패키지 생성 3. src/main/resources/mybatis-config.xml 복사 4. src/main/webapp/WEB-INF/web.xml 복사 5. src/main/webapp/WEB-INF/spring/root-context.xml 복사 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 ..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43