Linux下jetty发布jar包web
1.经过官网下载jetty点击下载https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/spring
2.下载后解压,进入%JETTY_HOME%,编辑start.ini修改默认端口号。tomcat
3.将war包放入%JETTY_HOME%/webapps下app
4.启动应用bin/jetty.sh start,中止应用bin/jetty.sh stop ,重启bin/jetty.sh restarteclipse
___________________________________________华丽分割线---------------------------------------------webapp
idea下配置jetty跟配置tomcat同样。没有任何区别。maven
注意,若是spring-boot项目中,使用了idea run Application方式启动,而且打成jar包的形式,直接运行jar就行了,若是不用自带的jetty, Application继承一下SpringBootServletInitializeride
仍是要有不要混淆使用。spring-boot