JAVA-203

Spring Boot (bridging course)

Download as PDF
Enquire Now

Course Overview

This course is recommended if you have a good working knowledge of Spring basics but are new to Spring Boot.

Spring Boot takes an opinionated view of building Spring applications and gets you up and running as quickly as possible.

This 3-day course offers experience with Spring Boot and its major features, including auto-configuration, Spring Boot testing enhancements, and more.

Please note that this course is a subset of the material in our 5-day Professional Spring Boot with JPA course – there is no need to take both courses.

Learning Outcomes

  • Spring configuration using Java Configuration and Annotations
  • Aspect-oriented programming (AOP)
  • Spring Boot enhancements to testing with JUnit 5
  • Spring with relational databases – JDBC, JPA, Spring Data
  • Spring support for database transactions
  • Spring Boot auto-configuration and starters
  • Build a simple MVC application using Spring Boot
  • Spring MVC and RestTemplate
  • Spring Security

Course Outline

Spring Configuration Using Java Configuration and Annotations

  • Overview of Spring
  • Creating an application context
  • Multiple configuration files
  • Bean scope
  • External properties
  • Profiles
  • Spring expression language
  • Proxying
  • Annotation-based dependency injection
  • Good practices for component scanning
  • Java @Configuration vs annotation
  • @PostConstruct and @PreDestroy
  • Stereotypes and meta annotations
  • Bean lifecycle

Aspect-Oriented Programming (AOP) with Spring

  • Core AOP Concepts
  • Defining Pointcuts
  • Implementing Advice

Test Spring-based Applications Using Junit 5

  • Spring’s integration test support
  • Profile selection with @ActiveProfiles
  • Test data setup with @Sql

Use Spring To Access Relational Databases (JDBC)

  • Spring’s DataAccessException hierarchy
  • Implementing caching
  • Problems with traditional JDBC
  • JdbcTemplate

Use Spring Support For Transactions

  • Transaction management: traditional JDBC vs Spring
  • Transaction propagation
  • Rollback rules
  • Transactions and integration testing

Use JPA with Spring and Spring Data

  • JPA configuration in Spring
  • JPA configuration using Spring Boot
  • Spring Data JPA dynamic repositories

Simplifying Applications with Spring Boot Auto-Configuration & Starters

  • Introduction to Spring Boot
  • Auto-configuration
  • Dependencies and “starters”
  • Packaging
  • External configuration
  • Profiles
  • Logging

Build A Simple MVC Application Using Spring Boot

  • Introduction to Spring MVC
  • Controller programming model and method parameters
  • Using @RequestMapping annotations
  • Accessing request data
  • Configuring Spring MVC with Spring Boot
  • Spring Boot packaging options, JAR or WAR
  • Testing controllers

Implement REST with Spring MVC and RestTemplate

  • Introduction to REST-style architecture
  • Map requests based on HTTP method
  • Access request data and set response data
  • Building responses explicitly
  • Build valid URIs (for “Location HTTP 201 Created” response header)
  • Putting it all together

Spring Security

  • Security concepts
  • Spring Security overview
  • Security in a Servlet environment
  • Intercepting URLs
  • Configuring authentication
  • Method security

Utilize Spring Boot Enhancements for Testing

  • Spring Boot testing overview
  • Integration testing with @SpringBootTest
  • Slices to test different layers of the application
  • Testing controllers with @WebMvcTest
  • Testing Spring Data JPA queries with @DataJpaTest

Skill Level

Intermediate

Suitable For

Developers with a good working knowledge of Spring basics but who are new to Spring Boot.

Prerequisites

  •  JAVA-201 — Professional Java (or equivalent experience/training)

Duration

3

 day

s

Related Topics

Enquire Now
JAVA-203

Spring Boot (bridging course)

Download as PDF
Enquire Now

Skill Level

Intermediate

Suitable For

Developers with a good working knowledge of Spring basics but who are new to Spring Boot.

Duration

3

 day

s

Related Topics

Course Overview

This course is recommended if you have a good working knowledge of Spring basics but are new to Spring Boot.

Spring Boot takes an opinionated view of building Spring applications and gets you up and running as quickly as possible.

This 3-day course offers experience with Spring Boot and its major features, including auto-configuration, Spring Boot testing enhancements, and more.

Please note that this course is a subset of the material in our 5-day Professional Spring Boot with JPA course – there is no need to take both courses.

Learning Outcomes

  • Spring configuration using Java Configuration and Annotations
  • Aspect-oriented programming (AOP)
  • Spring Boot enhancements to testing with JUnit 5
  • Spring with relational databases – JDBC, JPA, Spring Data
  • Spring support for database transactions
  • Spring Boot auto-configuration and starters
  • Build a simple MVC application using Spring Boot
  • Spring MVC and RestTemplate
  • Spring Security

Course Outline

Spring Configuration Using Java Configuration and Annotations

  • Overview of Spring
  • Creating an application context
  • Multiple configuration files
  • Bean scope
  • External properties
  • Profiles
  • Spring expression language
  • Proxying
  • Annotation-based dependency injection
  • Good practices for component scanning
  • Java @Configuration vs annotation
  • @PostConstruct and @PreDestroy
  • Stereotypes and meta annotations
  • Bean lifecycle

Aspect-Oriented Programming (AOP) with Spring

  • Core AOP Concepts
  • Defining Pointcuts
  • Implementing Advice

Test Spring-based Applications Using Junit 5

  • Spring’s integration test support
  • Profile selection with @ActiveProfiles
  • Test data setup with @Sql

Use Spring To Access Relational Databases (JDBC)

  • Spring’s DataAccessException hierarchy
  • Implementing caching
  • Problems with traditional JDBC
  • JdbcTemplate

Use Spring Support For Transactions

  • Transaction management: traditional JDBC vs Spring
  • Transaction propagation
  • Rollback rules
  • Transactions and integration testing

Use JPA with Spring and Spring Data

  • JPA configuration in Spring
  • JPA configuration using Spring Boot
  • Spring Data JPA dynamic repositories

Simplifying Applications with Spring Boot Auto-Configuration & Starters

  • Introduction to Spring Boot
  • Auto-configuration
  • Dependencies and “starters”
  • Packaging
  • External configuration
  • Profiles
  • Logging

Build A Simple MVC Application Using Spring Boot

  • Introduction to Spring MVC
  • Controller programming model and method parameters
  • Using @RequestMapping annotations
  • Accessing request data
  • Configuring Spring MVC with Spring Boot
  • Spring Boot packaging options, JAR or WAR
  • Testing controllers

Implement REST with Spring MVC and RestTemplate

  • Introduction to REST-style architecture
  • Map requests based on HTTP method
  • Access request data and set response data
  • Building responses explicitly
  • Build valid URIs (for “Location HTTP 201 Created” response header)
  • Putting it all together

Spring Security

  • Security concepts
  • Spring Security overview
  • Security in a Servlet environment
  • Intercepting URLs
  • Configuring authentication
  • Method security

Utilize Spring Boot Enhancements for Testing

  • Spring Boot testing overview
  • Integration testing with @SpringBootTest
  • Slices to test different layers of the application
  • Testing controllers with @WebMvcTest
  • Testing Spring Data JPA queries with @DataJpaTest