servletAnnotation1 [JSP] Project Run방법 / Servlet Annotation [JSP] Project Run방법 / Servlet Annotation Project 실행 방법 - 실행방법 1 : 서버를 시작시킨 후 브라우저에서 url 입력 cf ) Add and Remove 에서 Add한 프로젝트에 한해서 서버가 작동한다. - Step02 만 add하면 다른 프로젝트의 서버는 404 error가 뜬다. - 실행방법 2 : index페이지에서 이클립스 상단의 run버튼을 누른다. Servlet Annotation - 1. web.xml을 이용하여 클래스를 맵핑시키면 번거롭다. - 2. web.xml을 이용하는 대신 Servlet Annotation - @WebServlet("url-pattern") 을 이용하면 훨씬 편리하다. 2017. 6. 21. 이전 1 다음