급 작성인것을 감안해주길..- -;


maven을 사용하여 프로젝트 생성. 프로젝트 구성은 src, test, resources, 정도. jdk7 사용.

Server.java 를 실행하면 대략..

AppConfiguration -> JettyConfiguration -> WebInitializer -> MvcConfiguration 순으로 구동..


기존 방식대로 web.xml, app-context.xml, servlet-context.xml에 설정하고 Server에서 jetty를 구동해도 무관.



최소 목표는 java -jar __myjetty.jar를 실행해서 서버를 띄우는 것.




pom.xml





classpath, main-class, web.xml 경로설정해주고 mvn install 하면 jar 파일 생성.

이런식으로 서버 실행.



* jdk6 버전으로 하는 방법 ( https://github.com/steveliles/jetty-embedded-spring-mvc )


'Spring' 카테고리의 다른 글

Hello- Spring Boot !  (0) 2015.10.18

+ Recent posts