摘要: component-scan自动扫描注册装配 本文系作者原创,转载请注明出处:http://www.cnblogs.com/further-further-further/p/7717331.html 解决问题 通过component-scan自动扫描将业务逻辑bean注册到spring容器中,去除 阅读全文
posted @ 2017-10-23 22:56 w_x_w1985 阅读(712) 评论(0) 推荐(0) 编辑
摘要: annotation-config自动装配 本文系作者原创,转载请注明出处:http://www.cnblogs.com/further-further-further/p/7716678.html 解决问题 通过spring XML配置文件,实现类对象之间松耦合 前提条件 使用的bean必须在sp 阅读全文
posted @ 2017-10-23 22:47 w_x_w1985 阅读(627) 评论(0) 推荐(0) 编辑