A plain Spring MVC application (non-Boot) for managing personal notes with a simple HTML UI. This version is completely anonymous and does not require authentication.
- CRUD operations for notes
- Persistence using H2 database (in-memory)
- Framework: Spring Framework 6 (MVC, Data JPA)
- UI: Thymeleaf templates
- Database: H2 (Embedded)
- Packaging: WAR
WebConfig: Configures Spring MVC and Thymeleaf.PersistenceConfig: Configures JPA, EntityManager, and DataSource.AppInitializer: Bootstraps the application withoutweb.xml.
Since this is a plain Spring MVC application (non-Boot) packaged as a WAR, you have two main options to run it:
You can run the application directly from the command line using the Jetty Maven plugin:
mvn jetty:runThen open your browser and go to: http://localhost:8080/notes
- Build the WAR file:
mvn clean package
- Deploy the generated WAR file (
target/notesApi-0.0.1-SNAPSHOT.war) to a Servlet container like Apache Tomcat 10+ (since the project uses Jakarta Servlet 6.0). - Start Tomcat and access the application at
http://localhost:8080/notesApi-0.0.1-SNAPSHOT/notes(or the configured context path).
/notes: List all notes/notes/new: Create a new note/notes/edit/{id}: Edit an existing note
To run the tests, use:
mvn test