免下载tomcat
1.pom.xml
path:访问路径
port:访问的端口
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<path>/</path>
<port>8082</port>
</configuration>
</plugin>
</plugins>
</build>
2.
然后输入clean tomcat7:run
3.最后在浏览器输入 http://localhost:8082/就可以直接访问啦