首先工具准备。思路如下:
百度告诉我好多方法可以配置SSM框架。
1、安装maven
2、用eclipse下载maven插件
3、使用maven创建web工程
4、使用maven导入jar包
5、Spring和MyBatis整合
6、配置Spring mvc
7、测试
javax
javaee-api
7.0
修改完成,项目上面点右键maven->update Project。等待编译完成!
Spring 4.0.2 RELEASE
Spring MVC 4.0.2 RELEASE
MyBatis 3.2.6
4.0.0
org.test
one
0.0.1-SNAPSHOT
one
http://maven.apache.org
1.8
1.8
1.8
UTF-8
4.0.2.RELEASE
3.2.6
1.7.7
1.2.17
junit
junit
4.11
test
org.springframework
spring-core
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-oxm
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-aop
${spring.version}
org.springframework
spring-context-support
${spring.version}
org.springframework
spring-test
${spring.version}
org.mybatis
mybatis
${mybatis.version}
org.mybatis
mybatis-spring
1.2.2
javax
javaee-api
7.0
mysql
mysql-connector-java
5.1.30
commons-dbcp
commons-dbcp
1.2.2
com.hynnet
oracle-driver-ojdbc6
12.1.0.1
jstl
jstl
1.2
log4j
log4j
${log4j.version}
com.alibaba
fastjson
1.1.41
org.slf4j
slf4j-api
${slf4j.version}
org.slf4j
slf4j-log4j12
${slf4j.version}
org.codehaus.jackson
jackson-mapper-asl
1.9.13
commons-fileupload
commons-fileupload
1.3.1
commons-io
commons-io
2.4
commons-codec
commons-codec
1.9
one