SSM项目---淘淘商城(IDEA开发)
来源:互联网 发布:项目 书籍 商务 知乎 编辑:程序博客网 时间:2024/05/17 04:57
淘淘商城(SSM)—–day01
后台管理系统工程搭建
1.1 父工程的搭建 : - 父工程应该是一个pom工程 , 在父工程中定义依赖的jar包信息.
1.2 创建一个common工程 : 需要继承taotao-parent工程
pom文件 :依赖里是项目需要的公共组件
-
1.3 taotao-manager工程
pom文件
<!-- 依赖管理 --> <dependencies> <dependency> <groupId>com.taotao</groupId> <artifactId>taotao-common</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies>
1.4 taotao-manager-pojo模块
这模块的pom不需要修改,taotao-manager-pojo模块不依赖任何jar包。
1.5 taotao-manager-mapper模块
pom :
<!-- 依赖管理 --> <dependencies> <dependency> <groupId>com.taotao</groupId> <artifactId>taotao-manager-pojo</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <!-- Mybatis --> <!-- MySql --> < <!-- 连接池 --> </dependencies>
1.6 taotao-manager-service模块
pom :
<!-- 依赖管理 --> <dependencies> <dependency> <groupId>com.taotao</groupId> <artifactId>taotao-manager-mapper</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <!-- Spring --> </dependencies>
1.6 taotao-manager-web模块
pom
<packaging>war</packaging> <dependencies> <dependency> <groupId>com.taotao</groupId> <artifactId>taotao-manager-service</artifactId> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <!-- JSP相关 --> jstl,servlet,jsp <!-- 文件上传组件 --> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> </dependencies>
更改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_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="taotao" version="2.5"> <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>
1.7在taotao-manager的pom下配置tomacat
<build> <!-- 配置插件 --> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <configuration> <port>8080</port> <path>/</path> </configuration> </plugin> </plugins> </build>
先把taotao-common和taotao-parent安装到本地仓库中
启动tocamt
成功运行:
SVN可视化工具: (我用的github)
VisualSVN:http://www.visualsvn.com/server/download
安装时遇到端口443被占用时 :
0 0
- SSM项目---淘淘商城(IDEA开发)
- SSM项目之---淘淘商城(第一天)
- SSM项目之---淘淘商城(第二天)
- SSM项目之---淘淘商城(第三天)
- SSM项目之---淘淘商城(第一天)
- SSM项目之---淘淘商城(第二天)
- SSM项目之---淘淘商城(第三天)
- SSM项目之---淘淘商城(第一天)
- Java SSM淘淘商城12天电商项目
- 淘淘商城项目---8.5
- 淘淘商城项目总结
- 淘淘商城项目:Day3
- 淘淘商城项目系列-1.Eclipse开发环境配置
- 淘淘商城项目(有源码)
- 淘淘商城项目内容管理删除
- 淘淘商城项目内容管理更新
- 淘淘商城项目:Day1+Day2
- 【01】使用IDEA搭建 淘淘商城
- 创建函数计算目标元素到浏览器窗口的距离
- 平方数
- js输出当前系统时间
- Note4、const
- redis 三(数据类型)
- SSM项目---淘淘商城(IDEA开发)
- POJ 2387 Til the Cows Come Home 最短路 Dijstra
- Java内存模型
- [leetcode: Python]290.Word Pattern
- linux shell
- 关于tomcat发布项目404的奇葩问题
- BZOJ3173 [Tjoi2013]最长上升子序列
- 玲珑杯-No Game No Life
- 使用IDEA创建maven父子工程