Spring Boot 3 Flashcards
What are five key features of Spring Boot ?
- Spring Boot Starters
- Spring Boot Autoconfiguration
- Elegant configuration management
- Spring Boot Actuator
- Embedded servlet container
What is a Spring Boot starter ?
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)
What is a Spring Boot Autoconfiguration ?
Spring Boot takes an opionated view of configuration.
Configuration is determined by
presence/absence of a bean
system property
class in a classpath
What is elegant configuration management ?
Spring Boot supports having separate config files for different profiles
What is Spring Boot Actuator ?
Helps to determine details of a running application, health check metrics
All this available out of the box.
What is a composed annotation ?
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}
)}
)