Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Spring Professional Certification Exam Tutorial - Module 01
Rating: 4.6 out of 5(2,365 ratings)
12,861 students

Spring Professional Certification Exam Tutorial - Module 01

Container, Dependency, and IoC
Created byDominik Cebula
Last updated 8/2020
English
German [Auto],English [Auto],

What you'll learn

  • Knowledge and skills required for Spring Professional Certification Exam
  • Spring Professional Certification Study Guide Explanation & Answers
  • Container, Dependency, and IoC

Course content

1 section36 lectures4h 33m total length
  • Environment Setup9:53
  • Examples Download0:02
  • Question 01 - What is dependency injection and what are the advantages?12:04
  • Question 02 - What is a pattern? What is an anti-pattern. [...]9:20

    Question 02 - What is a pattern? What is an anti-pattern. Is dependency injection a pattern?

  • Question 03 - What is an interface and what are the advantages of [..]?10:22

    Question 03 - What is an interface and what are the advantages of making use of them in Java? Why are they recommended for Spring beans?

  • Question 04 - What is meant by "application-context"?4:13
  • Question 05 - What is the concept of a “container” and what is its lifecycle?8:44

    Explore how the container serves as the execution environment with services, enabling business focus. See the Spring bean lifecycle, including bean definitions, dependency injection, post-processors, initialization, and destruction.

  • Question 06 - How are you going to create a new instance of an [..] Context?15:42

    Question 06 - How are you going to create a new instance of an ApplicationContext?

  • Question 07 - Can you describe the lifecycle of a Spring Bean in an [...]?7:50

    Trace the spring bean lifecycle from configuration-driven definitions and post-processors through initialization (post construct, after properties set, init) to destruction when the context closes.

  • Question 08 - How are you going to create an ApplicationContext in an [..]?2:35

    Question 08 - How are you going to create an ApplicationContext in an integration test?

  • Question 09 - What is the preferred way to close an application context? [..]5:24

    Question 09 - What is the preferred way to close an application context? Does Spring Boot do this for you?

  • Question 10 - Can you describe Dependency injection using Java [..]22:22

    Question 10

    Can you describe:

    • Dependency injection using Java configuration?

    • Dependency injection using annotations (@Component, @Autowired)?

    • Component scanning, Stereotypes and Meta-Annotations?

    • Scopes for Spring beans? What is the default scope?

  • Question 11 - Are beans lazily or eagerly instantiated by default? How do [...]?9:45

    Question 11 - Are beans lazily or eagerly instantiated by default? How do you alter this behavior?

  • Question 12 - What is a property source? How would you use @PropertySource?3:10
  • Question 13 - What is a BeanFactoryPostProcessor and what is it used for? [...]?4:48

    Question 13 - What is a BeanFactoryPostProcessor and what is it used for? When is it invoked?

    • Why would you define a static @Bean method?

    • What is a ProperySourcesPlaceholderConfigurer used for?

  • Question 14 - What is a BeanPostProcessor and how is it different to a [...]?10:45

    Question 14 - What is a BeanPostProcessor and how is it different to a BeanFactoryPostProcessor? What do they do? When are they called?

    • What is an initialization method and how is it declared on a Spring bean?

    • What is a destroy method, how is it declared and when is it called?

    • Consider how you enable JSR-250 annotations like @PostConstruct and @PreDestroy? When/how will they get called?

    • How else can you define an initialization or destruction method for a Spring bean?

  • Question 15 - What does component-scanning do?3:11

    Component scanning searches the classpath for classes annotated with stereotype annotations to create Spring beans, using either a simple configuration or an advanced base-package with filters.

  • Question 16 - What is the behavior of the annotation @Autowired with [...]?15:10

    Question 16 - What is the behavior of the annotation @Autowired with regards to field injection, constructor injection and method injection?

  • Question 17 - What do you have to do, if you would like to inject [...]?7:07

    Question 17 - What do you have to do, if you would like to inject something into a private field? Ho does this impact testing?

  • Question 18 - How does the @Qualifier annotation complement the use of [...]?5:32

    Question 18 - How does the @Qualifier annotation complement the use of @Autowired?

  • Question 19 - What is a proxy object and what are the two different types [...]?13:32

    Question 19 - What is a proxy object and what are the two different types of proxies Spring can create?

    • What are the limitations of these proxies (per type)?

    • What is the power of a proxy object and where are the disadvantages?

  • Question 20 - What are the advantages of Java Config? What are the limitations?11:49

    Explore the advantages of Java config over XML and annotation based config, including compile-time type checking, refactoring, technology agnostic design, external library integration, and centralized bean management, plus its limitations.

  • Question 21 - What does the @Bean annotation do?7:47

    Learn how the bin annotation marks factory methods as Spring managed beans, enabling initialization, destruction, aliases, qualifiers, and controlled autowiring for clean dependency injection.

  • Question 22 - What is the default bean id if you only use @Bean? How can [...]?2:33

    Question 22 - What is the default bean id if you only use @Bean? How can you override this?

  • Question 23 - Why are you not allowed to annotate a final class with [...]?5:33

    Question 23 - Why are you not allowed to annotate a final class with @Configuration?

    • How do @Configuration annotated classes support singleton beans?

    • Why can’t @Bean methods be final either?

  • Question 24 - How do you configure profiles? What are possible use cases [...]?13:27

    Question 24 - How do you configure profiles?, What are possible use cases where they might be useful?

  • Question 25 - Can you use @Bean together with @Profile?3:23

    Explore how @Bean and @Profile work together in Spring configurations, including no profile, single, multiple, and negation rules, with examples of data mapper, data processor, data writer, and data reader.

  • Question 26 - Can you use @Component together with @Profile?4:01
  • Question 27 - How many profiles can you have?2:13
  • Question 28 - How do you inject scalar/literal values into Spring beans?4:56

    Learn to inject scalar and literal values into Spring beans with the value annotation, using simple strings, property references, or the spell string, in fields, constructors, and collections.

  • Question 29 - What is @Value used for?5:41

    Explore how the @Value annotation injects property and environment values into spring bean fields and parameters, using spell expressions, bean references, collections, defaults, and vm options.

  • Question 30 - What is Spring Expression Language (SpEL for short)?8:00
  • Question 31 - What is the Environment abstraction in Spring?5:26
  • Question 32 - Where can properties in the environment come from?9:18
  • Question 33 - What can you reference using SpEL?5:20

    Explore how SpEL references static fields and methods, spring properties, beans and their methods, environment properties, system properties, and system environment properties, and variables for accessing object data and behavior.

  • Question 34 - What is the difference between $ and # in @Value expressions?2:26

    Explains the difference between the dollar sign and hash sign in Spring value expressions: dollar references properties, hash evaluates spell expressions and assigns results.

Requirements

  • Java
  • Maven
  • IDE of your choice

Description

Spring Professional Exam Tutorial explains and answers all questions from Spring Professional Certification Study Guide. Each answer to exam topic is explained in detail with video tutorial, description and good example for you to get deep understanding of discussed topic. With this course you will get all required knowledge and skills to pass Spring Professional Certification Exam.

Course is divided into 8 modules:

  • Module 01 - Container, Dependency, and IoC

  • Module 02 - Aspect Oriented Programming

  • Module 03 - Data Management: JDBC, Transactions, JPA, Spring Data

  • Module 04 – Spring Boot

  • Module 05 - Spring MVC and The Web Layer

  • Module 06 – Security

  • Module 07 – REST

  • Module 08 – Testing

This course covers first module of the entire course and inside you can find answers to all topics from Spring Professional Certification Study Guide first section, which is Container, Dependency, and IoC.


Who this course is for:

  • Spring Professional Exam & Certification Candidates