zoukankan      html  css  js  c++  java
  • 淘淘商城之配置工程

    一、工程结构

      

    二、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)运行web工程需要添加一个tomcat插件;

      2)插件必须添加到taotao-manager工程中,因为taotao-manager是聚合工程,在运行时需要把子工程聚合到一起才能运行

    <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

  • 相关阅读:
    Android程序对不同手机屏幕分辨率自适应的方法
    用户管理和身份验证
    vue----scoped独立样式作用域
    vue----component动态组件
    css----行内元素&&块状元素
    html----rem结合vw布局
    js----jsonp原理
    js----白屏事件&&dom ready时间
    js----var a=b=2解析
    js----常见的表示false的有哪些
  • 原文地址:https://www.cnblogs.com/soldierback/p/10636201.html
Copyright © 2011-2022 走看看