spring3-mvc-maven-annotation-hello-world-master  mvn jetty:run

Run this project locally

Terminal

$ mvn jetty:run

URL : http://localhost:8080/spring3

spring3-mvc-maven-hello-world-master  mvn jetty:run  及 mvn war:war 指令-LMLPHP

Terminal

your-project$ mvn war:war

A WAR file will be created in project\target\ folder.

${Project}\target\spring3-web-1.0-SNAPSHOT.war

参考:http://www.mkyong.com/spring3/spring-3-mvc-hello-world-example/

http://www.mkyong.com/spring3/spring-3-mvc-hello-world-example-annotation/

04-16 05:10