
一、在pom.xml导入tomcat插件坐标
- <!--tomcat插件,启动当前的应用-->
- <build>
- <finalName>springmvc_validator</finalName>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <version>2.1</version>
- <!--http默认端口改为80端口-->
- <configuration>
- <!--修改tomcat启动的端口号-->
- <port>80</port>
- <!--
- 修改tomcat部署当前项目的虚拟目录(项目的访问根路径)
- 这改为 / 就表示你访问localhost/就是你的index页面
- -->
- <path>/</path>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
2、
2.1、
2.2、
2.3、效果
可参考:https://blog.csdn.net/weixin_46945684/article/details/122325851
https://blog.csdn.net/qq_50253227/article/details/117042314
评价
排名
6
文章
6
粉丝
16
评论
8
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术