https://github.com/amberbyte/ssd-projekt2
second
https://github.com/amberbyte/ssd-projekt2
Last synced: about 1 year ago
JSON representation
second
- Host: GitHub
- URL: https://github.com/amberbyte/ssd-projekt2
- Owner: AmberByte
- License: other
- Created: 2017-06-14T07:43:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T11:37:01.000Z (about 9 years ago)
- Last Synced: 2024-12-16T21:55:05.736Z (over 1 year ago)
- Language: CSS
- Size: 660 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[
](https://travis-ci.org/playframework/play-java-starter-example)
# Play Java Starter
This is a starter application that shows how Play works. Please see the documentation at https://www.playframework.com/documentation/latest/Home for more details.
## Running
Run this using [sbt](http://www.scala-sbt.org/). If you downloaded this project from http://www.playframework.com/download then you'll find a prepackaged version of sbt in the project directory:
```
sbt run
```
And then go to http://localhost:9000 to see the running web application.
## Controllers
There are several demonstration files available in this template.
- HomeController.java:
Shows how to handle simple HTTP requests.
- AsyncController.java:
Shows how to do asynchronous programming when handling a request.
- CountController.java:
Shows how to inject a component into a controller and use the component when
handling requests.
## Components
- Module.java:
Shows how to use Guice to bind all the components needed by your application.
- Counter.java:
An example of a component that contains state, in this case a simple counter.
- ApplicationTimer.java:
An example of a component that starts when the application starts and stops
when the application stops.
## Filters
- Filters.java:
Creates the list of HTTP filters used by your application.
- ExampleFilter.java
A simple filter that adds a header to every response.