티스토리 뷰
반응형
1. Empty Proejct 내 Maven 모튤 생성
- GroupId, ArtifactId 지정
- module name, path확인 후 next
- 생성된 moudle
- 아래와 같이 pom.xml파일 수정
6. com.test.controller package에 HomeController.java 생성 후 @Contoller 어노테이션, @RequestMapping Method 생성
- main/webapp 디렉토리, main/webapp/WEB-INF 두개의 디렉토리 생성, webapp/test.jsp 파일 생성
- 아래와 같이 web.xml수정 기본적인 설정만 ( 현재 WEB-INF/spring-servlet.xml 아직 생성 전 )
- WEB-INF 디렉토리 밑에 Spring Config xml 파일 생성
- web.xml에 작성되어있던 spring-servlet.xml 파일명으로 생성후 아래와 같이 설정
- 아래와 같이 수정 후 Tomcat에 Artifact 등록 후 실행 -> localhost:8080/실행시 Hello World확인
반응형
'Tool > Intellij' 카테고리의 다른 글
what is project structure in intellij (0) | 2018.12.17 |
---|---|
intellij 에 servlet 프로젝트 생성하기 (1) | 2018.12.17 |
단축키 정리 및 Tip (0) | 2017.06.17 |
댓글