Spring生成ServiceImpl对象

每次请求都要这样写吗,请求一多是不是ServiceImpl的数量就会成倍增加
action:
ApplicationContext act = new ClassPathXmlApplicationContext("beans.xml");
pimgsb=(ProductIMGServer)act.getBean("productimgServerBean");

ServiceImpl:
@Service("productServerBean")
@Transactional

githubAddress:https://github.com/musibing/PetManagerProject/
工程路径:com.musibing

肯定不是啊 这个只是刚开始学习的时候练习用的吧 正常都是使用注解注入