Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Small Spring Boot playground to test out Spring Boot persistance layer and Flyway integration

Notifications You must be signed in to change notification settings

palmithor/springboot-veggies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

master develop
Build Status Build Status

springboot-veggies

Small project for testing out Spring Boot JPA layer. It is a webservice which exposes few RESTful resources for getting information inventory status on vegetables.

Its dependencies and build functions are configured using Maven.

Testing

The tests can be run via maven:

mvn test

Building

Maven package creates an executable jar file

mvn package

Running

The service is built with Spring Boot and can be run with the Spring Boot Maven plugin:

mvn spring-boot:run 

Notice that the database is pre-initialized with three items. Currently only in-memory database is used and no cache has been configured.

An example requests:

GET http://localhost:8080/api/v1/vegetables
GET http://localhost:8080/api/v1/vegetables/1

About

Small Spring Boot playground to test out Spring Boot persistance layer and Flyway integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages