Erlo

Spring-mvc需要的jar包

时间:2020-10-17   阅读:10次   来源:博客园
页面报错
点赞

Spring-mvc 开发初始环境1

   

   

此截图适用于maven开发,非maven开发则不需要Servlet.jar除了spring-webmvc其他的Spring jar包都属于spring 框架。

   

Junit.jarhamcrest.jar用于测试。

   

Commons-io.jarCommons-fileupload.jar 用于文件上传。

   

Jackson.jar 用于servlet像jsp页面传输数据。

   

   

   

   

  • <!-- servlet包 -->
  •     <dependency>
  •         <groupId>javax.servlet</groupId>
  •         <artifactId>javax.servlet-api</artifactId>
  •         <version>3.1.0</version>
  •         <scope>provided</scope>
  •     </dependency>
  •     
  •     <dependency>
  •       <groupId>junit</groupId>
  •       <artifactId>junit</artifactId>
  •       <version>4.11</version>
  •       <scope>test</scope>
  •     </dependency>
  •     
  •     <!-- spring 相关jar -->
  •     
  •         <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
  •         <dependency>
  •             <groupId>org.springframework</groupId>
  •             <artifactId>spring-context</artifactId>
  •             <version>4.3.20.RELEASE</version>
  •         </dependency>
  •         <!-- https://mvnrepository.com/artifact/org.springframework/spring-web -->
  •         <dependency>
  •             <groupId>org.springframework</groupId>
  •             <artifactId>spring-web</artifactId>
  •             <version>4.3.20.RELEASE</version>
  •         </dependency>
  •         
  •         
  •         <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
  •         <!-- spring-mvc的jar -->
  •         <dependency>
  •             <groupId>org.springframework</groupId>
  •             <artifactId>spring-webmvc</artifactId>
  •             <version>4.3.20.RELEASE</version>
  •         </dependency>
  •         
  •         <!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
  •         <dependency>
  •             <groupId>commons-logging</groupId>
  •             <artifactId>commons-logging</artifactId>
  •             <version>1.1.1</version>
  •         </dependency>
  •         <!-- jackson -->
  •         <dependency>
  •             <groupId>com.fasterxml.jackson.core</groupId>
  •             <artifactId>jackson-core</artifactId>
  •             <version>2.9.8</version>
  •         </dependency>
  •         
  •         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
  •         <dependency>
  •             <groupId>com.fasterxml.jackson.core</groupId>
  •             <artifactId>jackson-annotations</artifactId>
  •             <version>2.9.8</version>
  •         </dependency>
  •         
  •         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
  •         <dependency>
  •             <groupId>com.fasterxml.jackson.core</groupId>
  •             <artifactId>jackson-databind</artifactId>
  •             <version>2.9.8</version>
  •         </dependency>
  •         
  •         
  •         <!-- 文件上传 -->
  •         <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  •     <dependency>
  •         <groupId>commons-io</groupId>
  •         <artifactId>commons-io</artifactId>
  •         <version>2.4</version>
  •     </dependency>
  •     <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
  •     <dependency>
  •         <groupId>commons-fileupload</groupId>
  •         <artifactId>commons-fileupload</artifactId>
  •         <version>1.3.1</version>
  •     </dependency>

 

相关推荐

提交留言

评论留言

还没有评论留言,赶紧来抢楼吧~~

吐槽小黑屋()

* 这里是“吐槽小黑屋”,所有人可看,只保留当天信息。

  • Erlo吐槽

    Erlo.vip2020-10-21 23:53:52Hello、欢迎使用吐槽小黑屋,这就是个吐槽的地方。
  • 返回顶部