建立一个能运行的spring-mvc程序,至少需要哪些配置以及jar包

2024-12-27 22:51:11
推荐回答(1个)
回答1:

使用maven创建项目直接在pom文件增加如下依赖就可以了:


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



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