idea编译方式
1.在使用idea的时候有时间编译不成功,需要重新编译一下
编译的命令是
clean compile install -e
2.新建maven的tomcat
在pom中加入如下配置
<!-- tomcat plugin -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>8080</port>
<uriEncoding>UTF-8</uriEncoding>
<url>http://127.0.0.1/manager</url>
<server>tomcat7</server>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<contextReloadable>false</contextReloadable>
</configuration>
</plugin>
然后通过
maven创建一个
install tomcat7:run -e