也可以在非靜態(tài)方法的入?yún)⑸霞覣utowired注解
@Servicepublic class UserService { ? ?public void test(@Autowired IUser user) { ? ? ? user.say(); ? ?}}