Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hello World web application in 39 different ways in Java

NotificationsYou must be signed in to change notification settings

dbelob/helloworld-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating a simple web application onJava in various ways:

#Techology, library, frameworkInitial release date
TypeSubtype
1HTTP Servletweb.xml file1996-12
2@WebServlet annotation
3ServletContainerInitializer interface implementation
4Spring MVCweb.xml file2005-12
5Java configuration
6Spring BootSpring MVC2014-04
7Spring WebFlux
8JavaServer FacesEclipse Mojarra2004-03-03
9Apache MyFaces2005-11
10Google Web Toolkit2006-05-16
11Grails2005-10
12Struts2000-05
13Dropwizard2011-12-21
14Play2008-05
15JHipster2013-10-21
16JAX-RSApache CXF2008-04
17RESTEasy2008-09
18Jersey2010-05
19Restlet2013-01
20Vaadin2006
21Seam2007
22Wicket2005-06
23Tapestry2000
24Spark Java2011
25Vert.x2011
26Rapidoid2014-08
27Lagom2016-03
28Ratpack2013
29Javalin2017-05-24
30Micronaut2018-10-23
31Quarkus2019-11-25
32ActFramework2017-03-09
33MicroProfileTomEE2012-04-27
34Hammock2014-02-27
35Thorntail2016-01
36KumuluzEE2016-04-04
37Payara Micro2017-07
38Open Liberty2017-09-19
39Helidon2018-09-19

Requirements

Running

  1. Change directory:cd <maven module directory>

  2. From the command line with Maven:

    mvn jetty:run
    (forhelloworld-web-servlet-xml,helloworld-web-servlet-annotation,helloworld-web-servlet-interface-war,helloworld-web-spring-mvc-xml,helloworld-web-spring-mvc-java,helloworld-web-jsf-mojarra,helloworld-web-jsf-myfaces,helloworld-web-struts,helloworld-web-jaxrs-apache-cxf,helloworld-web-jaxrs-resteasy,helloworld-web-jaxrs-jersey,helloworld-web-jaxrs-restlet,helloworld-web-vaadin,helloworld-web-seam,helloworld-web-wicket,helloworld-web-tapestry modules)

    mvn spring-boot:run
    (forhelloworld-web-spring-boot-mvc,helloworld-web-spring-boot-webflux,helloworld-web-jhipster modules)

    mvn gwt:codeserver
    (in one terminal window forhelloworld-web-gwt-client module)
    mvn jetty:run
    (in another terminal window forhelloworld-web-gwt-server module)

    mvn grails:run-app
    (forhelloworld-web-grails module)

    mvn package
    java -jar target/hello-world.jar server hello-world.yml
    (forhelloworld-web-dropwizard module)

    mvn clean package
    mvn play2:run
    (forhelloworld-web-play module)

    mvn package
    mvn lagom:runAll
    (forhelloworld-web-lagom-impl module)

    mvn package
    java -jar target/hello-world.jar
    (forhelloworld-web-sparkjava,helloworld-web-vertx,helloworld-web-rapidoid,helloworld-web-ratpack,helloworld-web-javalin,helloworld-web-micronaut,helloworld-web-microprofile-hammock,helloworld-web-microprofile-kumuluzee,helloworld-web-microprofile-openliberty,helloworld-web-microprofile-helidon modules)

    mvn clean compile quarkus:dev
    (forhelloworld-web-quarkus module)

    mvn clean compile act:dev
    (forhelloworld-web-actframework module)

    mvn package
    java -jar target/hello-world-exec.jar
    (forhelloworld-web-microprofile-tomee module)

    mvn package
    java -jar target/hello-world-thorntail.jar
    (forhelloworld-web-microprofile-thorntail module)

    mvn package
    java -jar target/hello-world-microbundle.jar
    (forhelloworld-web-microprofile-payara module)

  3. Access the deployed web application at:http://localhost:8080

Article

SeeHabr (Russian)

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp