This project is a simple CRUD application built with Spring Boot and MySQL. It provides RESTful APIs to manage student records.
JpaRepository and CrudRepository to provide CRUD operations on the student entity.Handles the following endpoints:
POST "http://localhost:9077/save" -H "Content-Type: application/json" -d '{"name": "John Doe", "age": 20, "email": "johndoe@example.com"}'
POST "http://localhost:9077/saveAll" -H "Content-Type: application/json" -d '[{"name": "John Doe", "age": 20, "email": "johndoe@example.com"}, {"name": "Jane Doe", "age": 22, "email": "janedoe@example.com"}]'
GET "http://localhost:9077/getbyid/1"
GET "http://localhost:9077/getall"
GET "http://localhost:9077/listByIds/1,2,3"
PUT "http://localhost:9077/update/1" -H "Content-Type: application/json" -d '{"name": "John Doe Updated", "age": 21, "email": "johnupdated@example.com"}'
DELETE "http://localhost:9077/deletebyid/1"
DELETE "http://localhost:9077/deleteall"
DELETE "http://localhost:9077/bulkdelete" -H "Content-Type: application/json" -d '[1, 2, 3]'
GET "http://localhost:9077/count"
GET "http://localhost:9077/exists/1"
ServiceI providing methods to interact with the repository layer.JpaRepository and CrudRepository to perform database operations on the Student entity.spring.datasource.url: JDBC URL for the MySQL database.spring.datasource.username: Username for the MySQL database.spring.datasource.password: Password for the MySQL database.spring.jpa.properties.hibernate.dialect: Hibernate dialect for MySQL.spring.jpa.show-sql: Show SQL queries in the console.spring.jpa.hibernate.ddl-auto: DDL mode for the database (e.g., update).