1.3)框架依赖


wx-tools依赖于以下几个jar包

  • http
    • org.apache.httpcomponents -> httpclient
    • org.apache.httpcomponents -> httpmime
  • JSON处理
    • org.codehaus.jackson -> jackson-mapper-asl
  • XML处理
    • com.thoughtworks.xstream -> xstream
  • IO
    • commons-io

建议用Maven构建项目。因为依赖的jar包中也会依赖其他包。

如果出现ClassNotFound等异常欢迎留言。

maven pom.xml

    <!-- 补全依赖 -->
    <!-- HttpClient -->
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.3.6</version>
    </dependency>
    <!-- http://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime -->
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpmime</artifactId>
        <version>4.3.6</version>
    </dependency>

    <!-- JSON -->
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>1.9.13</version>
    </dependency>
    <!-- XML -->
    <!-- http://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
    <dependency>
        <groupId>com.thoughtworks.xstream</groupId>
        <artifactId>xstream</artifactId>
        <version>1.4.7</version>
    </dependency>
    <!-- IO -->
    <!-- http://mvnrepository.com/artifact/commons-io/commons-io -->
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
    </dependency>
注意:不要与项目中的jar包重复哦,如果已经有了,就不用添加了~

results matching ""

    No results matching ""