Autowired private UserDao userDao; @Override public BaseDao<User> getDao() { return userDao; } 比如你写的代码叫UserService,有个其他的service依赖UserService同时也依赖UserDao,就不需要在这个service中对UserDao也@Autowired。要是删除没问题就删了呗,其实并没有什么用。顺便说一下,构造器注入比属性注入性能更好