1.修改pom.xml
2.打成war包
<packaging>war</packaging>
3.添加tomcat的maven插件
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<port>9090</port>
<path>/spring_activemq</path>
<uriEncoding>UTF-8</uriEncoding>
<finalName>spring_activemq</finalName>
<server>tomcat7</server>
</configuration>
</plugin>
</plugins>
</build>
4. tomcat7:run