好吧,这是一个坑。。。这是一个基于java nio的简单的http服务器。总的代码只有10多K。目前只实现了http静态资源访问功能。

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>idashu</groupId>
    <artifactId>server</artifactId>
    <version>0.0.3</version>
    <packaging>jar</packaging>

    <name>dashuserver</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <skipTests>true</skipTests>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <source>1.6</source>
                    <target>1.6</target>
                    <fork>true</fork>
                    <compilerVersion>1.6</compilerVersion>
                    <!--<failOnError>false</failOnError>-->
                    <showWarnings>false</showWarnings>
                    <compilerArgument>-nowarn</compilerArgument>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>