ssm分布式架构电商项目(四)

表现层,打包方式war(继承taotao-parent)

ssm分布式架构电商项目(四)_第1张图片

 也可以自动生成,项目会报红叉,单击项目找到 java  EE Tools下第二项那个图标像罐子的点击就可以

 1.1.1. Taotao-manager-web

ssm分布式架构电商项目(四)_第2张图片

 

 

 ssm分布式架构电商项目(四)_第3张图片

 

 ssm分布式架构电商项目(四)_第4张图片


Pom文件

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0modelVersion>

<parent>

<groupId>com.taotaogroupId>

<artifactId>taotao-parentartifactId>

<version>0.0.1-SNAPSHOTversion>

parent>

<groupId>com.taotaogroupId>

<artifactId>taotao-manager-webartifactId>

<version>0.0.1-SNAPSHOTversion>

<packaging>warpackaging>

<dependencies>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-contextartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-beansartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-webmvcartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-jdbcartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-aspectsartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-jmsartifactId>

dependency>

<dependency>

<groupId>org.springframeworkgroupId>

<artifactId>spring-context-supportartifactId>

dependency>

<dependency>

<groupId>jstlgroupId>

<artifactId>jstlartifactId>

dependency>

<dependency>

<groupId>javax.servletgroupId>

<artifactId>servlet-apiartifactId>

<scope>providedscope>

dependency>

<dependency>

<groupId>javax.servletgroupId>

<artifactId>jsp-apiartifactId>

<scope>providedscope>

dependency>

<dependency>

<groupId>commons-fileuploadgroupId>

<artifactId>commons-fileuploadartifactId>

dependency>

dependencies>

<build>

<plugins>

<plugin>

<groupId>org.apache.tomcat.mavengroupId>

<artifactId>tomcat7-maven-pluginartifactId>

<configuration>

<port>8081port>

<path>/path>

configuration>

plugin>

plugins>

build>

project>

 

1.1. 启动工程

启动taotao-manager工程。

需要在taotao-manager pom工程中,配置tomcat插件。启动的端口号,和工程名称。

taotao-managerpom文件中添加如下配置:

<build>

<plugins>

<plugin>

<groupId>org.apache.tomcat.mavengroupId>

<artifactId>tomcat7-maven-pluginartifactId>

<configuration>

<port>8080port>

<path>/path>

configuration>

plugin>

plugins>

build>

启动tomcat插件:

clean tomcat7:run

先把taotao-parenttaotao-common安装到本地仓库。然后再启动。

 

你可能感兴趣的:(框架)