IDEA使用maven中tomcat插件来启动服务器配置
2024-10-21 19:37:17
一 、在项目pom文件中配置tomcat
先添加如下配置:
<!-- 配置Tomcat插件 -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<!-- 指定端口 -->
<port>8000</port>
<!-- 请求路径 -->
<path>/erp</path>
</configuration>
</plugin>
</plugins>
</build>
二、如图,点击Edit Configurations
Tomcat7使用tomcat7,tomcat8以后将7和8兼容了,统一使用tomcat:run
最新文章
- IE10 IE11 中 网站无法登录问题cookie
- ubuntu 11.04安装笔记
- poj2431 Expedition
- 【转】How to build and install PHP 5.6.9 from source on Ubuntu 14.04 VPS
- 【Shell基础】循环:for、while、until
- linux mysql 安装
- Mac 系统占用100g的解决办法
- Spring MVC 数据绑定 (四)
- python day11 函数(第三篇)
- AspNet Core 认证
- 搭建svn服务器的坑
- [Java in NetBeans] Lesson 10. For Loops
- Python实现机器学习算法:K近邻算法
- JAVA常识1
- np.random.rand均匀分布随机数和np.random.randn正态分布随机数函数使用方法
- word 2013 自动保存太慢,下面读条起码3分钟
- Git的安装和设置
- MySQL中地理位置数据扩展geometry的使用心得
- PHP面试题遇到的几个坑。...面壁ing
- Struts2的工作流程分析
热门文章
- sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
- 串 2016Vijos省选集训 day3[AC自动机]
- 【BZOJ3112】[Zjoi2013]防守战线 单纯形法
- 九度OJ 1323:World Cup Betting(世界杯) (基础题)
- 九度OJ 1250:矩阵变换 (矩阵运算)
- Chrome Native Messaging 与本地程序之间的通信
- Js版json解析
- Latex: Expression under summation on multiple lines
- CVPR 2018paper: DeepDefense: Training Deep Neural Networks with Improved Robustness第一讲
- 每天一个Linux命令(35)wc命令