Spring Web MVC (+ Hibernate, Spring Data JPA) hello world without any XML file
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:
- List all customers (in JSON format):
- Customer detail (in JSON format):
How to build WAR file: