Tuesday, May 5, 2015

Jetty

http://localhost:8080/rest-api/


I want remove /rest-api/


/Users/chenxingjun/IdeaProjects/rest-api/pom.xml

add

<contextPath>/</contextPath>


to

<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>6.1.10</version>
    <configuration>
        <scanIntervalSeconds>10</scanIntervalSeconds>
        <contextPath>/</contextPath>
        <stopKey>foo</stopKey>
        <stopPort>9999</stopPort>
    </configuration>


</plugin>

No comments:

Post a Comment