2024/03/08

2024/03/03

2024/03/02

2024/02/29

2024/02/28

2024/02/27

spring boot test,spring context

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