Skip to content

Spring REST API just for fun! Demonstrates new language features such as lambdas, method references Stream API etc.,

Notifications You must be signed in to change notification settings

simon-1729/modernjava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Java

Details

This is a demo project used to highlight some of the key features of java 8. In particular, we focus on the Stream API and functional interfaces. The project leverages Spring and Swagger to provide a simple RESTful API which may be use to sort and filter the baked-in Apple dataset. For comparison we have included both Legacy and Modern implementations.

Build source code

mvn clean package spring-boot:repackage

Start service

Navigate to project root via command line and execute.
mvn spring-boot:run

Swagger API

http://localhost:8888/swagger-ui.html

H2 Console

See application.properties for login details.
http://localhost:8888/h2-console

Optional

Build and tag a Docker image
docker build -t simon1729/modernjava .
Start Docker container.
docker run -d -p 8888:8888 --name modernjava simon1729/modernjava

About

Spring REST API just for fun! Demonstrates new language features such as lambdas, method references Stream API etc.,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •