idea中不想用tomcat容器部署项目,该如何快速启动项目呢?
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <port>80</port> <path>/</path> <uriEncoding>UTF-8</uriEncoding> <server>tomcat7</server> </configuration> </plugin>
如上pom文件中加入maven插件tomcat依赖即可,刷新maven,直接点击即可
或者进入maven配置项配置也可