@Component
public class Util {
private static String b;
@Autowired
private String a;
@PostConstruct
public void init() {
b = a;
}
}
@Component
public class A {
@Autowired
private B b;
public static A a;
@PostConstruct
public void init(){
a = this;
a.b = this.b;
}
}