Spring,SpringMVC,Mybatis (SSM)框架的搭建


转载请注明出处:   http://blog.csdn.net/cnm_1314/article/details/47747743

搭建SSM框架参照一下步骤:
1.提供ssm所需jar包

    这些jar包包括三个框架所需要的,就不一一列举所属了
aopalliance-1.0.jar
asm-3.3.1.jar
aspectjweaver.jar
c3p0-0.9.1.jar
cglib-2.2.2.jar
commons-logging-1.1.1.jar
iText-2.1.3.jar
jackson-annotations-2.1.5.jar
jackson-core-2.1.5.jar
jackson-databind-2.1.5.jar
jackson-mapper-lgpl-1.8.1.jar
jackson-module-jaxb-annotations-2.1.5.jar
javassist-3.17.1-GA.jar
json-lib-2.3-jdk15.jar
json-taglib-0.4.1.jar
jstl.jar
log4j-1.2.17.jar
mybatis-3.2.1.jar
mybatis-spring-1.2.0.jar
mysql-connector-java-5.1.22-bin.jar
slf4j-api-1.7.2.jar
slf4j-log4j12-1.7.2.jar
spring-aop-3.2.2.RELEASE.jar
spring-aspects-3.2.2.RELEASE.jar
spring-beans-3.2.2.RELEASE.jar
spring-context-3.2.2.RELEASE.jar
spring-core-3.2.2.RELEASE.jar
spring-expression-3.2.2.RELEASE.jar
spring-jdbc-3.2.2.RELEASE.jar
spring-tx-3.2.2.RELEASE.jar
spring-web-3.2.2.RELEASE.jar
spring-webmvc-3.2.2.RELEASE.jar
standard.jar

2.编写web.xml配置文件

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">
	<display-name>FirstPrj_SSM</display-name>
	<!-- Web App Root Key -->
	<context-param>
		<param-name>webAppRootKey</param-name>
		<param-value>FirstPrj_SSM.root</param-value>
	</context-param>
	
	<!-- 监听器 -->
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

	<!-- 设置Spring容器加载配置文件的路径 -->
	<context-param>
		<param-name>contextConfigLo
  • 3
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值