Git Product home page Git Product logo

jwp's Introduction

2014년 개발 경험 프로젝트

  1. 로컬 개발 환경에 Tomcat 서버를 시작한 후 http://localhost:8080으로 접근하면 질문 목록을 확인할 수 있다. http://localhost:8080으로 접근해서 질문 목록이 보이기까지의 소스 코드의 호출 순서 및 흐름을 설명하라.
  • 사용자가 http://localhost:8080으로 접근하면, 서버는 welcome-file-list에 지정된 바에 따라 index.jsp를 반환한다.
  • 사용자의 브라우저는 index.jsp의 내용에 따라, http://localhost:8080/list.next으로 redirect 한다.
  • list.next에 대한 GET 요청이 발생하면, 서버는 FrontController servlet이 처리를 담당한다.
  • Servlet은 응답을 처리할 Controller를 찾기 위해 RequsetMappingfindController("list.next") 메소드를 호출하고 new ListController()를 반환 받는다.
  • FrontController servlet이 반환된 ListControllerexecute() 메소드를 실행한다.
  • ListControllerQuestionDaofindAll() 메소드을 실행해 데이터베이스에서 질문 목록을 가져온다.
  • 새로운 ModelAndView를 생성하고 jstlView("list.jsp")로 초기화한 다음, addObject() 메소드를 실행해 Model에 가져온 질문 목록을 담은 다음, 만들어진 ModelAndView를 반환한다.
  • FrontController servlet이 반환된 ModelAndViewView를 이용해 새로운 View를 만든 다음, render() 메소드를 이용해 질문 목록이 담긴 list.jsp 페이지를 클라이언트로 반환한다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.