A simple Spring Boot project demonstrating basic REST API endpoints using @RestController, @RequestParam and CRUD operations.
This project includes simple examples for learning Spring Boot fundamentals:
/sum→ Add two numbers/info→ Return a simple JSON object/greet→ Greeting with RequestParam/upper→ Convert text to uppercase/random→ Random number (1–100)
Perfect for beginners learning Spring Boot REST APIs.
Refactored the previous implementation that used a HashMap<Integer, Course> and migrated it into a proper Course object list, following clean OOP design.
- Updated
Create,GetAll,GetById,Update, andDeletemethods. - Improved response handling with
ResponseEntity. - Added
createdDate,updatedDate, andisActivefields.
Follow the steps below to set up and run this Spring Boot application locally with MySQL.
git clone https://github.com/Hjufaili/SpringBoot.git
cd SpringBootmvn clean installCREATE DATABASE courseDBDataBase;src/main/resources/application.propertiesReplace YOUR_USERNAME and YOUR_PASSWORD with your real MySQL credentials
mvn spring-boot:run
java -jar target/demo-0.0.1-SNAPSHOT.jar