Spring-what does the common method of labeling with @ autowire do?

  java, question

such as

@Configuration
 @EnableWebSecurity
 public class SecurityConfig extends WebSecurityConfigurerAdapter {
 
 @Autowired
 public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
 auth
 .inMemoryAuthentication()
 .withUser("user").password("password").roles("USER");
 bracket
 bracket

This code inside, isn’t itauthWas it injected? When was configureGlobal called?

Spring will instantiate all Bean first, then scan according to the configuration, inject when @ autowire is detected, and call this method when injecting.