Spring Boot 3 Flashcards

1
Q

What are five key features of Spring Boot ?

A
  • Spring Boot Starters
  • Spring Boot Autoconfiguration
  • Elegant configuration management
  • Spring Boot Actuator
  • Embedded servlet container
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Spring Boot starter ?

A

A preconfigured module of library dependencies to get started working with a specific technology e.g. Spring Batch, Spring MVC, Spring Security etc…
So, for example the Spring Data Jpa starter contains the dependencies for Spring Data JPA and Hibernate (as Hibernate is a popular JPA implementation)

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

What is a Spring Boot Autoconfiguration ?

A

Spring Boot takes an opionated view of configuration.
Configuration is determined by
presence/absence of a bean
system property
class in a classpath

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

What is elegant configuration management ?

A

Spring Boot supports having separate config files for different profiles

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

What is Spring Boot Actuator ?

A

Helps to determine details of a running application, health check metrics
All this available out of the box.

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

What is a composed annotation ?

A

This means it is a compound annotation…
e.g. @SpringBootAnnotation is actually many annotations rolled into one

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(
excludeFilters = {@Filter(
type = FilterType.CUSTOM,
classes = {TypeExcludeFilter.class}
), @Filter(
type = FilterType.CUSTOM,
classes = {AutoConfigurationExcludeFilter.class}
)}
)

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