淘淘商城之配置工程
一、工程結(jié)構(gòu)
二、web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_4_0.xsd"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"id="taotao" version="4.0"><display-name>taotao-manager</display-name><welcome-file-list><welcome-file>index.html</welcome-file><welcome-file>index.htm</welcome-file><welcome-file>index.jsp</welcome-file><welcome-file>default.html</welcome-file><welcome-file>default.htm</welcome-file><welcome-file>default.jsp</welcome-file></welcome-file-list></web-app>三、配置tomcat插件
1)運(yùn)行web工程需要添加一個tomcat插件;
2)插件必須添加到taotao-manager工程中,因?yàn)閠aotao-manager是聚合工程,在運(yùn)行時需要把子工程聚合到一起才能運(yùn)行
<build><plugins><!-- 配置Tomcat插件 --><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.2</version><configuration><port>8080</port><path>/</path></configuration></plugin></plugins> </build>3)啟動tomcat命令:tomcat7:run
?
轉(zhuǎn)載于:https://www.cnblogs.com/soldierback/p/10636201.html
總結(jié)
- 上一篇: 五分钟搞定 Linux 文档全部知识,就
- 下一篇: JavaScipt30(第三个案例)(主