Spring-mvc需要的jar包

Spring-mvc 开发初始环境

     

     

此截图适用于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>

  

posted @ 2020-10-17 11:30  黑质白章  阅读(850)  评论(0编辑  收藏  举报