ITTrainingNow

Java Enterprise Development with Spring Boot

Build and test enterprise Java applications with Spring Boot, REST APIs, JPA with MySQL, and an introduction to Spring Cloud.

Course overview

Take your Java skills to the enterprise level during this five-day intermediate instructor-led course. Start with Spring core concepts and Spring Boot, build REST APIs, persist data to MySQL with Spring Data JPA and Hibernate, manage relationships and transactions, test each layer, and finish with an introduction to Spring Cloud microservices. Guided labs build a working application throughout the week.

5 daysCourse length
10 modulesGuided exercises and practice
IntermediateJava programming experience required
Instructor-ledDemonstrations and hands-on labs

Course coverage

Progress from Spring fundamentals to a database-backed REST service and an introduction to cloud-ready microservices.

  • 01 Enterprise Java, Maven, and Spring Initializr project setup
  • 02 Spring core: IoC, dependency injection, beans, and profiles
  • 03 Spring Boot starters, auto-configuration, properties, and Actuator
  • 04 REST APIs with Spring Web, DTOs, validation, and error handling
  • 05 JPA and Hibernate: entities, IDs, mappings, and the persistence context
  • 06 Connecting to MySQL with Spring Data JPA repositories and queries
  • 07 Entity relationships, transactions, paging, and sorting
  • 08 Testing with JUnit 5, Mockito, MockMvc, and @DataJpaTest
  • 09 Spring Cloud: Config Server, service discovery, and Gateway
  • 10 Service calls with OpenFeign, resilience, and packaging for deployment

Participants will learn to

  • Create and configure Spring Boot projects with Maven.
  • Apply dependency injection and manage beans and profiles.
  • Build validated REST endpoints with consistent error responses.
  • Map Java classes to MySQL tables with JPA annotations.
  • Query data with Spring Data repositories and JPQL.
  • Model relationships and manage transactions with @Transactional.
  • Write unit, web-layer, and repository tests.
  • Describe microservice patterns and connect services with Spring Cloud.
Practical outcome: Build a Spring Boot REST service that stores data in MySQL with Spring Data JPA, validates requests, handles errors, includes automated tests, and registers with a Spring Cloud gateway and discovery server.

Five-day course outline

Day 1 - Spring foundations and Spring Boot: Review enterprise Java architecture and layered design. Generate a project with Spring Initializr and Maven, apply inversion of control and dependency injection, define beans and configuration classes, use profiles, and configure applications with application.properties or YAML. Monitor applications with Spring Boot Actuator.

Day 2 - Building REST APIs: Create controllers with @RestController and request mappings, handle path variables, query parameters, and JSON request bodies, and separate DTOs from domain models. Validate input with Bean Validation, return proper HTTP status codes, and centralize error handling with @ControllerAdvice.

Day 3 - JPA and MySQL: Introduce JPA and Hibernate, define entities, primary keys, and column mappings, and understand the persistence context and entity lifecycle. Configure a MySQL datasource, use Spring Data JPA repositories for CRUD operations, write derived queries and JPQL with @Query, and manage schema changes.

Day 4 - Relationships, transactions, and testing: Map one-to-many, many-to-one, and many-to-many relationships, choose lazy or eager fetching, and avoid the N+1 query problem. Manage transactions with @Transactional, add paging and sorting, and test services with JUnit 5 and Mockito, controllers with MockMvc, and repositories with @DataJpaTest.

Day 5 - Introduction to Spring Cloud: Compare monoliths and microservices. Centralize settings with Spring Cloud Config, register services with Eureka discovery, route requests through Spring Cloud Gateway, call services with OpenFeign, and add a circuit breaker with Resilience4j. Package services as executable JARs, review container deployment, and complete the final lab.

Format and audience

For: Java developers, back-end developers, and technical staff moving into enterprise application development with Spring Boot.

Prerequisites: Working knowledge of Java, including classes, interfaces, collections, and exceptions (such as Java for Beginners plus practice), and basic SQL. Participants need a computer with JDK 17 or later, an IDE such as IntelliJ IDEA, Eclipse, or VS Code, Maven, and MySQL 8 installed.

How it works: Five days of instructor-led demonstrations, guided exercises, and hands-on labs. Contact us to discuss dates and virtual or onsite delivery.

Explore the course

Request a quote for the five-day Java Enterprise Development course and discuss your team's training needs.

Request a Quote

Back to programming training