其他分享
首页 > 其他分享> > Servlet和tomcat需要引入的依赖和包

Servlet和tomcat需要引入的依赖和包

作者:互联网

1.servlet依赖

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

    <dependency>
      <groupId>javax.servlet.jsp</groupId>
      <artifactId>jsp-api</artifactId>
      <version>2.1</version>
      <scope>provided</scope>
    </dependency>
<plugin>
          <groupId>org.apache.tomcat.maven</groupId>
          <artifactId>tomcat7-maven-plugin</artifactId>
          <version>2.2</version>
          <configuration>
            <port>8080</port>
            <path>/test</path>
            <uriEncoding>UTF-8</uriEncoding>
            <server>tomcat7</server>
          </configuration>
        </plugin>

标签:provided,tomcat,Servlet,tomcat7,api,引入,servlet,javax
来源: https://www.cnblogs.com/lwx11111/p/16459456.html