My First Spring Boot Application that Contain Basic Crud Operation on Account using Clever Cloud MySQL Cloud Database.
Welcome to my first Spring Boot application! This project demonstrates a basic CRUD (Create, Read, Update, Delete) operation on an Account
entity, using a MySQL database hosted on Clever Cloud.
Account
entity.Account
data.Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
Configure the database connection:
Update the application.properties
file located in src/main/resources/
with your Clever Cloud MySQL database connection details:
spring.datasource.url=jdbc:mysql://<your-database-url>:3306/<your-database-name>
spring.datasource.username=<your-username>
spring.datasource.password=<your-password>
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
Build the project:
mvn clean install
Run the application:
mvn spring-boot:run
Access the API:
The application runs on http://localhost:8080
. You can access the API endpoints via tools like Postman or your web browser.
POST /addacc
GET /showacc
POST /searchacc/{id}
POST /depositeamt/{id, amount}
DELETE deleteacc/{id}
Contributions are welcome! Please feel free to submit a Pull Request.
Happy coding!