ThisisthecanonicalrepositoryfortheJettyproject,feelfreetoforkandcontributenow!
Submittingapatchorpullrequest?
MakesureyouhaveanEclipseContributorAgreement(ECA)onfile.
eclipse.org/legal/ecafaqProjectdescriptionJettyisalightweighthighlyscalablejavabasedwebserverandservletengine.OurgoalistosupportwebprotocolslikeHTTP,HTTP/2andWebSocketinahighvolumelowlatencywaythatprovidesmaximumperformancewhileretainingtheeaseofuseandcompatibilitywithyearsofservletdevelopment.Jettyisamodernfullyasyncwebserverthathasalonghistoryasacomponentorientedtechnologyeasilyembeddedintoapplicationswhilestillofferingasolidtraditionaldistributionforwebappdeployment.
https://projects.eclipse.org/projects/rt.jettyWebappExample$mkdirbase&&cdbase$java-jar$JETTY_HOME/start.jar--add-modules=http,deploy$cp~/src/myproj/target/mywebapp.warwebapps$java-jar$JETTY_HOME/start.jarEmbeddedExampleServerserver=newServer(port);ServletContextHandlercontext=newServletContextHandler(server,"/");context.addServlet(MyServlet.class,"/*");server.start();DocumentationProjectdocumentationisavailableontheJettyEclipsewebsite.
https://www.eclipse.org/jetty/documentationBuildingTobuild,use:
mvncleaninstallEclipseJettywillbebuiltinjetty-home/target/jetty-home.
ThefirstbuildmaytakealongerthanexpectedasMavendownloadsallthedependencies.
Thebuildtestsdoalotofstresstesting,andonsomemachinesitisnecessarytosetthefiledescriptorlimittogreaterthan2048fortheteststoallpasssuccessfully.
Itispossibletobypasstestsbybuildingwithmvncleaninstall-DskipTests.
ProfessionalServicesExpertadviceandproductionsupportareavailablethroughWebtide.com.
评论