30-Spring Boot Feature Introduction Flashcards
What does take an “opinionated” view of the Spring platform and third-party libraries
Spring Boot
Is Spring Boot a code generator?
It is NOT
+ A code generator
+ An IDE plug-in
Modern Java applications require a large number of dependencies - How do you make sure they are compatible?
Spring Boot’s parent or Starters
How to fine-grain dependencies in a Spring Boot app?
- Exclude dependencies you do not use
2. Define the dependencies explicitly yourself - find the correct version from the Starters
Is SpringApplication a Spring Framework or Spring Boot class?
Spring Boot class
What does SpringBootApplication include?
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan
How to start a test with Spring boot?
@SpringBootTest
What is STS?
Spring Tool Suite, an IDE built on Eclipse
What are runners supported in Spring boot?
ApplicationRunner and CommandLineRunner
ApplicationRunner vs. CommandLineRunner
ApplicationRunner.run(ApplicationArguments): can use ApplicationArguments to get/check arguments
CommandLineRunner.run(String[])
When do ApplicationRunner, CommandLineRunner run?
will get execute, just after application context is created and before spring boot application starts up