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

  java, question

such as

 public class SecurityConfig extends WebSecurityConfigurerAdapter {
 public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {

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.