A Spring Boot backend service with MySQL database.
- Java 17
- Spring Boot 3.2.5
- Spring Data JPA (Hibernate)
- MySQL 8.x
- Lombok
- Maven
src/main/java/com/vuong/api_platform/
├── ApiPlatformApplication.java # Main entry point
├── config/ # Configuration classes
├── controller/ # REST controllers
├── domain/ # JPA entities
├── exception/ # Exception handling
├── repository/ # Data access layer
└── service/ # Business logic
- JDK 17+
- MySQL 8.x running on
localhost:3306 - Maven 3.8+
-
Create the MySQL database (auto-created if
createDatabaseIfNotExist=true):CREATE DATABASE api_platform;
-
Update database credentials in
src/main/resources/application.ymlif needed. -
Run the application:
./mvnw spring-boot:run
-
The server starts on http://localhost:8080.
GET http://localhost:8080/actuator/health