Spring Boot (+ Hibernate and Spring Data JPA) hello world without any XML file
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Spring Web MVC (+ Hibernate, Spring Data JPA) hello world without any XML file using Spring Boot

No web.xml, no Spring xml configuration file, no persistence.xml, no *.hbm.xml, simply no XML configuration file is in this example, which retrieves data from database and returns them in JSON format.

This project uses embedded HSQL database, which creates an in-memory database at startup and destroys all data at shutdown.

How to run: mvn jetty:run

  • List all customers (in JSON format): http://localhost:8080/customers
  • Customer detail (in JSON format): http://localhost:8080/customers/1

How to build WAR file: mvn package