我们先看一下这个项目的部署路径。

打开taotao-manager的pom.xml看到:

Tomcat插件的部署路径是:

 <!-- 添加插件 -->
  <plugins>
   <plugin>
       <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <configuration>
      <port>8080</port>
      <path>/</path>
    </configuration>
    
   </plugin>
  </plugins>

也就是说这个项目是直接部署在Tomcat的根目录下的,所以我们在url中输入:http://localhost:8080

就可以直接访问这个项目。不需要像之前http://localhost:8080/项目名      这样才能访问。

 

相关文章:

  • 2021-06-06
  • 2022-12-23
  • 2022-01-07
  • 2022-01-14
  • 2021-12-22
  • 2021-09-25
  • 2021-06-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-08-05
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案