在WEB醒目中集成Spring

Spring,负责对象创建,处理依赖关系

Spring在WEB应用使用

  整合SpringMVC,Structs,Hibernate,Mybatis

步骤:

引用jar文件

    Spring-core

    Spring-web(spring-web-4.0.6.RELEASE.jar)(spring-webmvc-4.0.6.RELEASE.jar)

配置文件

  applicationContext.xml--spring容器的配置

  web.xml--初始化spring IOC容器

猜你喜欢

转载自www.cnblogs.com/sunupo/p/10655568.html