-------------------------siwuxie095 整合 SpringMVC 框架和 Spring 框架 1.导入相关 jar 包(共 17 个) (1)导入 Spring 的核心 jar 包和日志相关的 jar 包(6 个) Commons Logging 下载链接: http://commons.apache.org/proper/commons-log…
Spring框架主要使用依赖注入.实际上,很多牛叉的框架如Google的Guice都是使用依赖注入. ------------------------------------------------------依赖注入和IOC容器-------------------------------------------------------- 1.依赖注入 有两个组件A和B,其中A中的一个方法使用到了B中的方法: public classs A{ public void MethodA{ B b=…