Posts

Spring Boot ToDo App with JSP and MySQL: Complete Project From Scratch (Source Code + Fixes)

This is the written companion to my ToDo application video, one of the most-watched projects on my channel. It's a full web app, not just an API: a page that lists your tasks, forms to add and edit them, buttons to mark a task complete or delete it, and little pop-up notifications after every action. It uses Spring Boot 3, Spring MVC with JSP pages, Spring Data JPA and MySQL. All code below is copied from the project on GitHub. I've also gone through the questions viewers posted under the video, so the errors people actually hit are covered at the end, with fixes. How the app is put together Requests flow through three layers, and each class has one job: Layer Class / file Its job View ViewToDoList.jsp , AddToDoItem.jsp , EditToDoItem.jsp The HTML pages, styled with Bootstrap Controller ToDoController Maps each URL to a method and picks which page to show Service ToDoService The business rules: what "mark complete" or "save" actually means Reposito...
Recent posts