This project demonstrates a simple Spring Boot application integrated with MySQL to perform basic CRUD operations using RESTful APIs.
Java JDK (8 or later) Maven MySQL Server
Copy code
git clone https://github.com/SankarshanMishra/Springboot_Java_mavenproject1_usingmysql.git
Create a MySQL database named demo_db.
Update application.properties in src/main/resources with your MySQL database configuration:
properties
spring.datasource.url=jdbc:mysql://localhost:3306/demo_db
spring.datasource.username=your_username
spring.datasource.password=your_password
Copy code
cd Springboot_Java_mavenproject1_usingmysql
Copy code
mvn clean install
Copy code
mvn spring-boot:run
json
Copy code
{
"name": "John Doe",
"email": "[email protected]"
}
json
Copy code
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
}
json Copy code
[
{
"id": 1,
"name": "John Doe",
"email": "[email protected]"
},
{
"id": 2,
"name": "Jane Smith",
"email": "[email protected]"
}
]
Spring Boot Spring Data JPA MySQL Database
Contributions are welcome! Fork this repository and submit a pull request with your enhancements.
This project is licensed under the MIT License - see the LICENSE file for details.