Skip to content
Basic Embedded Jetty Java Server Example
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Basic Embedded Jetty Java Server Example

An example of how to use Jetty HTTP server in embedded mode (the server shipped together with the application as opposed of deploying the application separately on external Jetty server).

Could be started by:

  • Running the main() method.
  • By utilizing Maven exec plugin with command mvn clean compile exec:java

Then, just access http://localhost:8080/

You can’t perform that action at this time.