也可以在非静态方法的入参上加Autowired注解
@Servicepublic class UserService { public void test(@Autowired IUser user) { user.say(); }}