本文共 592 字,大约阅读时间需要 1 分钟。
关于maven-jetty-plugin的说明:pom文件中:
说明:freemarker org.mortbay.jetty maven-jetty-plugin 6.1.22 10 true /freemarker 8080
1.<scanIntervalSeconds>10</scanIntervalSeconds> 表示热部署时间
2.<useTestClasspath>true</useTestClasspath> 默认为fasle,true表示web.xml读取配置文件都是从src/test/resources中读取
3.<contextPath>/freemarker</contextPath>访问项目名为freemarker,若不需要项目名则直接为 /
启动maven命令为: jetty:run
转载地址:http://lsobn.baihongyu.com/