30-Spring Boot Feature Introduction Flashcards

1
Q

What does take an “opinionated” view of the Spring platform and third-party libraries

A

Spring Boot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is Spring Boot a code generator?

A

It is NOT
+ A code generator
+ An IDE plug-in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Modern Java applications require a large number of dependencies - How do you make sure they are compatible?

A

Spring Boot’s parent or Starters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to fine-grain dependencies in a Spring Boot app?

A
  1. Exclude dependencies you do not use

2. Define the dependencies explicitly yourself - find the correct version from the Starters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is SpringApplication a Spring Framework or Spring Boot class?

A

Spring Boot class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does SpringBootApplication include?

A

@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to start a test with Spring boot?

A

@SpringBootTest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is STS?

A

Spring Tool Suite, an IDE built on Eclipse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are runners supported in Spring boot?

A

ApplicationRunner and CommandLineRunner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ApplicationRunner vs. CommandLineRunner

A

ApplicationRunner.run(ApplicationArguments): can use ApplicationArguments to get/check arguments
CommandLineRunner.run(String[])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When do ApplicationRunner, CommandLineRunner run?

A

will get execute, just after application context is created and before spring boot application starts up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly