Spring+SpringMVC企业快速开发架构搭建(2)

<!-- json -->
  <dependency>
   <groupId>com.alibaba</groupId>
   <artifactId>fastjson</artifactId>
   <version>${fastjson.version}</version>
  </dependency>
  <dependency>
   <groupId>net.sf.json-lib</groupId>
   <artifactId>json-lib</artifactId>
   <version>${json-lib.version}</version>
   <classifier>jdk15</classifier>
  </dependency>

<!-- MQ-->
  <dependency>
   <groupId>org.apache.activemq</groupId>
   <artifactId>activemq-all</artifactId>
   <version>${activemq.version}</version>
  </dependency>
  <dependency>
   <groupId>tomcat</groupId>
   <artifactId>servlet-api</artifactId>
   <version>${servlet-api.version}</version>
  </dependency>

<!-- 分布式事务处理 -->
  <dependency>
   <groupId>com.atomikos</groupId>
   <artifactId>transactions-jta</artifactId>
   <version>${atomikos.version}</version>
   <optional>true</optional>
  </dependency>
  <dependency>
   <groupId>com.atomikos</groupId>
   <artifactId>transactions-jdbc</artifactId>
   <version>${atomikos.version}</version>
   <optional>true</optional>
  </dependency>
  <dependency>
   <groupId>javax.transaction</groupId>
   <artifactId>jta</artifactId>
   <version>${jta.version}</version>
   <optional>true</optional>
  </dependency>
  <dependency>
   <groupId>com.alibaba</groupId>
   <artifactId>druid</artifactId>
   <version>1.0.9</version>
   <optional>true</optional>
  </dependency>

<!-- poi -->
  <dependency>
   <groupId>org.apache.poi</groupId>
   <artifactId>poi</artifactId>
   <version>${poi.version}</version>
  </dependency>
  <dependency>
   <groupId>org.apache.poi</groupId>
   <artifactId>poi-ooxml</artifactId>
   <version>${poi.version}</version>
  </dependency>

<!-- jackson -->
  <dependency>
   <groupId>org.codehaus.jackson</groupId>
   <artifactId>jackson-mapper-asl</artifactId>
   <version>${jackson.version}</version>
  </dependency>
      <dependency> 
          <groupId>cglib</groupId>
          <artifactId>cglib-nodep</artifactId>
          <version>${cglib.version}</version>
      </dependency>
 <dependency>
  <groupId>commons-fileupload</groupId>
  <artifactId>commons-fileupload</artifactId>
  <version>${fileupload.version}</version>
 </dependency>   
 <dependency>
  <groupId>org.jodd</groupId>
  <artifactId>jodd</artifactId>
  <version>${jodd.version}</version>
 </dependency>
</dependencies>

四、 创建Spring的配置文件

1、 启动Spring需要在web.xml中配置监听,使用SpringMVC需要配置Spring的servlet

Web.xml代码

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5f1a66866c4382c54c46308843434311.html