- get value from application.yaml
- use environment
- use profile
- @component
- component scan
- initialize the component
- add it to spring application context
- can get the bean from application context
- @Component equals @Bean in a @Configuration
- can use @SpringBootTest to load spring application context