[testing project] Example of Standalone Java EE MVC project
Java CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat

README.md

Build Status Dependency Status

About

This project demonstrates how to create standalone Java EE MVC application.

MVC is newly developed Java EE JSR 371: Model-View-Controller (MVC 1.0) Specification.

The MVC API defines an action-oriented Web framework as an alternative to the component-oriented JSF. In an action-oriented framework, developers are responsible for all the controller logic and are given full control of the URI space for their application.

The MVC API is layered on top of JAX-RS over Servlets and integrates with existing EE technologies like CDI and Bean Validation.

It uses following technologies:

  • Ozark as reference implementation of MVC specification
  • Mustache as MVC template engine
  • Undertow as implementation of Servlets specification
  • Weld as reference implementation of CDI specification
  • DeltaSpike as extension library of CDI
  • Jersey as reference implementation of JAX-RS specification

See my blog post for more details.

Build it

gradlew build

Run it

gradlew run

Try it

curl -vvv http://localhost:8080/resources/hello?user=Libor

Distribute it

gradlew distZip

And build/distributions/ contains distribution zip.