我有很多bean的Spring Java Services
类:
@Service ("employeeManager")
public class EmployeeManagerImpl implements EmployeeManager
{
@Autowired
EmployeeDAO employeedao;
@Autowired
Workerdao workerdao;
@Autowired
SallaeryDao sallaeryDao
@Autowired
TaxDao taxDao
@Autowired
HouresDao houresDao
@Autowired
*****Dao
public EmployeeDTO createNewEmployee()
{
return dao.createNewEmployee();
}
}
我是否可以清除Service
类代码,而我的类中没有很多bean声明我只有一个bean?我有很多bean,我不想在课堂上用