Maven uses the tomcat7-maven-plugin plugin



After reference to http://www.cnblogs.com/EasonJim/p/6917587.html


, the following code solves the problem of startup error.
<plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
            </plugin>


<dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326690297&siteId=291194637