This is an Orphan Exercise branch from the Java Fullstack Course - EBAC, focused on Spring Boot fundamentals and REST API development.
- Java Version: 17
- Spring Boot: 3.5.10 (latest stable)
- Build Tool: Maven
- Database: PostgreSQL
- Persistence: Spring Data JPA (Hibernate ORM)
- Utilities: Project Lombok
- Monitoring: Spring Boot Actuator
- Development: Spring Boot DevTools
SpringProject/
├── src/
│ ├── main/
│ │ ├── java/ # Java source code
│ │ │ └── br/com/j_fborges/ # Base package
│ │ └── resources/ # Configuration files (application.properties, etc.)
│ └── test/
│ └── java/ # Unit and integration tests
├── pom.xml # Maven configuration
├── mvnw / mvnw.cmd # Maven wrapper scripts (cross-platform)
├── .mvn/ # Maven wrapper configuration
├── .gitignore # Git ignore rules
└── .gitattributes # Git attribute configuration
- Java 17 or higher
- Maven 3.6+ (or use the included
mvnwwrapper) - PostgreSQL database running
-
Clone the branch:
git clone https://github.com/j-fborges/java_fullstack_course_ebac.git cd java_fullstack_course_ebac git checkout java_springboot -
Configure database connection:
- Edit
src/main/resources/application.properties(or create it if it doesn't exist) - Add PostgreSQL configuration:
spring.datasource.url=jdbc:postgresql://localhost:5432/your_database spring.datasource.username=your_username spring.datasource.password=your_password spring.jpa.hibernate.ddl-auto=update spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
- Edit
-
Build the project:
./mvnw clean install
Or on Windows:
mvnw.cmd clean install
-
Run the application:
./mvnw spring-boot:run
-
Access the application:
- Application runs on:
http://localhost:8080 - Health check:
http://localhost:8080/actuator/health - Metrics:
http://localhost:8080/actuator/metrics
- Application runs on: