Java Spring: Annotation Configuration and Java Configuration in Spring


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
The Spring Framework is an open source framework and an inversion of controller container for the Java platform. The Spring Framework is one of the most popular application development frameworks for creating enterprise Java applications. This course covers the basics of creating and configuring Spring applications using both Java-based and annotation configurations. In this course, you will learn about alternate ways of creating and configuring Spring applications, namely, annotation-based configuration and Java-based configuration. You will also learn about declaring Spring beans using a component scanner and about Spring Expression Language.

Target Audience
Java developers seeking to learn the basics of creating Spring applications

Prerequisites
None

Expected Duration (hours)
3.7

Lesson Objectives

Java Spring: Annotation Configuration and Java Configuration in Spring

  • start the course
  • recognize the basics of configuring Spring applications using annotations
  • use the @Autowired annotation to set bean properties
  • use the @Autowired annotation to set up constructor injection
  • use the @Value annotation to set bean properties
  • make bean autowiring optional based on if a bean is available
  • use the @Qualifier annotation to help reduce any potential ambiguities
  • use the @Required annotation to make sure a bean property is being set via setter injection
  • use the @PostConstruct and @PreDestroy annotations to define methods that run after a bean is instantiated and before a bean is destroyed
  • recognize the origin of alternative annotations that can be used to configure Spring applications
  • use the @Resource annotation to support dependency injection in a Spring application
  • use the @Inject annotation to support dependency injection in a Spring application
  • recognize the basics of implicitly declaring Spring beans by using the component scanner
  • use the @Named annotation to support configuring dependency injection
  • recognize and identify the various stereotype annotations that can be used to declare Spring beans
  • use custom annotations to declare classes that should be registered as Spring beans
  • recognize the basics of configuring a Spring application using Java class files
  • create a Spring application that is configured using a Java class file
  • perform setter injection from a Spring application with a Java-based configuration
  • perform constructor injection from a Spring application with a Java-based configuration
  • set up autowiring for a Spring application configured with a Java-based configuration
  • set up component scanning for a Spring application with a Java-based configuration
  • recognize Spring Expression Language and some of its features
  • use Spring Expression Language to help configure XML-based Spring applications
  • use Spring Expression Language to help configure annotation-based Spring applications
  • use Spring Expression Language to evaluate and set property values
  • use the safe navigation operator to avoid the NullPointerException when using Spring Expression Language
  • use Spring Expression Language to expose data from the Java system properties object
  • understand how to configure Spring applications using both annotation-based configuration, and Java-based configuration, and also to demonstrate using Spring Expression Language
  • Course Number:
    jl_spng_a02_it_enus

    Expertise Level
    Beginner