This article is reproduced:
Original address: Variables annotated with @Resource in static methods in Spring