SSM 第一个DI 第一个DI 第一个DI 1.基于IOC管理Bean 2.Service中使用new创建的对象不能保留。 3.Service中提供Dao的方法 4.在applictioncontext.xml配置service和dao之间关系