1.@Resource 是jaee的注解;@Autowired是spring的注解; 参考文献:https://blog.csdn.net/wangzuojia001/article/details/54312074