一 、在项目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

最新文章

  1. IE10 IE11 中 网站无法登录问题cookie
  2. ubuntu 11.04安装笔记
  3. poj2431 Expedition
  4. 【转】How to build and install PHP 5.6.9 from source on Ubuntu 14.04 VPS
  5. 【Shell基础】循环:for、while、until
  6. linux mysql 安装
  7. Mac 系统占用100g的解决办法
  8. Spring MVC 数据绑定 (四)
  9. python day11 函数(第三篇)
  10. AspNet Core 认证
  11. 搭建svn服务器的坑
  12. [Java in NetBeans] Lesson 10. For Loops
  13. Python实现机器学习算法:K近邻算法
  14. JAVA常识1
  15. np.random.rand均匀分布随机数和np.random.randn正态分布随机数函数使用方法
  16. word 2013 自动保存太慢,下面读条起码3分钟
  17. Git的安装和设置
  18. MySQL中地理位置数据扩展geometry的使用心得
  19. PHP面试题遇到的几个坑。...面壁ing
  20. Struts2的工作流程分析

热门文章

  1. sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
  2. 串 2016Vijos省选集训 day3[AC自动机]
  3. 【BZOJ3112】[Zjoi2013]防守战线 单纯形法
  4. 九度OJ 1323:World Cup Betting(世界杯) (基础题)
  5. 九度OJ 1250:矩阵变换 (矩阵运算)
  6. Chrome Native Messaging 与本地程序之间的通信
  7. Js版json解析
  8. Latex: Expression under summation on multiple lines
  9. CVPR 2018paper: DeepDefense: Training Deep Neural Networks with Improved Robustness第一讲
  10. 每天一个Linux命令(35)wc命令