商城項目二day02教案ab3001宜立方day01v_第1頁
商城項目二day02教案ab3001宜立方day01v_第2頁
商城項目二day02教案ab3001宜立方day01v_第3頁
商城項目二day02教案ab3001宜立方day01v_第4頁
商城項目二day02教案ab3001宜立方day01v_第5頁
已閱讀5頁,還剩44頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

課程計mavenmaventomcat4、SSM5、svn12SOA2、上能分3、nginx4、Nginx5、Nginx6、Nginx2、Cms2、Redis服務(wù)器搭建4redis做緩存51、Solr2、Solrj1、solr2solrjsolr45、MQ3jsp1、使用marker實現(xiàn)網(wǎng)頁靜態(tài)3、Sso1、sso功能實2、sso3token4、Ajax跨域請求34、mycat的使用123、Git42.行業(yè)背景介,近年來,中國的電子商務(wù)快速發(fā)展額連創(chuàng)新高,電子商務(wù)在各領(lǐng)域的應(yīng)用不斷拓展和深化、相關(guān)服務(wù)業(yè)蓬勃發(fā)展、支撐體系不斷健全完善、創(chuàng)新的動力和能力不斷增強。,009-2015年中國電子商務(wù)市場規(guī)模(萬億元1 行業(yè)很掙錢,找互聯(lián)網(wǎng)相關(guān)的工作2 行業(yè)技術(shù)要求很高、高可用、海量數(shù)據(jù)的2.2.行業(yè)技術(shù)特宜立方商城介B2C平臺,類似京東商城、天貓商城。會員可以在商宜立方商城架 系統(tǒng)架前門 商品搜 商品展 購物&登訂單提支會員中客戶服 公 幫助中 社商品管商品管活動管商品推訂單管

采購管

1000500500500負(fù)載均衡服需要20臺服務(wù)器做tomcat集群。當(dāng)tomcat集群點數(shù)量增加,服務(wù)能力先增加后下降。所以集群點數(shù)量不能太多,一般也就5個左右。10000soa服服務(wù)緩數(shù)據(jù)前臺系XX服內(nèi)容服商品服搜索服會員服訂單服搜索系系會員系訂單系MyCatMyCatMysqlMysqlMysqlMysql服務(wù)中間件緩存Solr工程搭mavenmavenJarPomjar包的版本、maven插件的版本、統(tǒng)一的依賴管理。聚合 Pom開發(fā)環(huán)境:eclipsemars2 下的.m2下Pom文<project<project"<artifactId>e3-<version>0.0.1-集中定義依賴版 <servlet-api.version>2.5</servlet-<jsp-api.version>2.0</jsp-<joda-time.version>2.5</joda-<commons-lang3.version>3.3.2</commons-<commons-io.version>1.3.2</commons-<commons-net.version>3.3</commons-<pagehelper.version>3.4.2-<commons-fileupload.version>1.3.1</commons- 時間操作組件<groupId>joda-<artifactId>joda-<version>${joda-Apache工具組件 <artifactId>commons-<version>${commons- <artifactId>commons-<version>${commons-<groupId>commons-<artifactId>commons-<version>${commons-JacksonJson處理工具包<artifactId>jackson-<!-- -- quartz任務(wù)調(diào)度框架<groupId>org.quartz-單元測試日志處理<artifactId>slf4j-<!--Mybatis--<artifactId>mybatis- <artifactId>mybatis- <!--MySql--<artifactId>mysql-connector-連接池<!--Spring--<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-context-JSP<artifactId>servlet-<version>${servlet-<artifactId>jsp-<version>${jsp-文件上傳組件<groupId>commons-<artifactId>commons-<version>${commons-Redis客戶端 solr客戶端<artifactId>solr-dubbo相關(guān) <artifactId>activemq- 資源文件拷貝插件<artifactId>maven-resources-<encoding>UTF-javapiler-<encoding>UTF-Tomcat<artifactId>tomcat7-maven-Pom文<project<project"<artifactId>e3-<version>0.0.1-<version>0.0.1-時間操作組件<groupId>joda-<artifactId>joda-Apache工具組件 <artifactId>commons- <artifactId>commons-<groupId>commons-<artifactId>commons-JacksonJson處理工具包<artifactId>jackson-<!-- -- quartz任務(wù)調(diào)度框架<groupId>org.quartz-單元測試日志處理<artifactId>slf4j-e3-聚合工程。打包方式pomPom文<project<project"<artifactId>e3-<version>0.0.1-<artifactId>e3-<artifactId>e3-<version>0.0.1-<version>0.0.1-Pom文<project<project" <artifactId>e3-<version>0.0.1-<artifactId>e3-manager-Pom文<project<project"<artifactId>e3-<version>0.0.1-<artifactId>e3-manager-<artifactId>e3-manager-<version>0.0.1-mybatis<artifactId>mybatis-<artifactId>mybatis-<!--MySql--<artifactId>mysql-connector-Pom文<project<project"<artifactId>e3-<version>0.0.1-<artifactId>e3-manager-<artifactId>e3-manager-<version>0.0.1-jarPom文<project<project"<artifactId>e3-<version>0.0.1-<artifactId>e3-manager-<artifactId>e3-manager-<version>0.0.1-<artifactId>e3-manager-<version>0.0.1-spring<!--Spring--<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-<artifactId>spring-context-表現(xiàn)層,打包方式warPom文<project<project"<artifactId>e3-<version>0.0.1-<artifactId>e3-manager-<artifactId>e3-manager-<version>0.0.1-JSP<artifactId>servlet-<artifactId>jsp-補 結(jié)由于打包方式為war需要補 結(jié)構(gòu),需要在 下添加WEB- ,web.xml<?xml<?xmlversion="1.0"encoding="UTF-<web-app"/xml/ns/javaeeid="WebApp_ID" y-name>e3-manager- y- e-file- e-e-<e-file-</web-添加<%@<%@pagelanguage="java"contentType="text/html;charset=UTFEncoding="UTF-<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01"<metahttp-equiv="Content-Type"content="text/html;charset=UTF-<title>Inserttitle o宜立方商城e3-manager配置tomcat插件需要在e3-manager的pom工程中,配置配置tomcat插件<artifactId>tomcat7-maven-<artifactId>tomcat7-maven-tomcatclean先 Ssm框架整mysql5.51mysql數(shù)據(jù)庫中創(chuàng)建數(shù)據(jù)庫2、將創(chuàng)建數(shù)據(jù)庫的導(dǎo)入到e3mall中Mybatis使用mybatis提供的mybatis-generator生成pojo、mapper接口及映射文件。pojoe3-manager-pojo工程中。1、DaoMybatis2、Service3Springmvcspringmvc管理controller。Springmvc的三大組件。Dao<?xml<?xmlversion="1.0"encoding="UTF-8"<!DOCTYPEPUBLIC"-////DTDConfig3.0//EN"Spring<?xmlversion="1.0"encoding="UTF-<beans util-數(shù)據(jù)庫連接池加載配置文件 ceholderlocation="classpath:conf/perties"數(shù)據(jù)庫連接池<beanid="dataSource"class="com.alibaba.druid.pool.DruidDataSource"<propertyname="url"value="${jdbc.url}"<propertyname="username"value="${jdbc.username}"<propertyname="password"value="${jdbc.password}"<propertyname="driverClassName"value="${jdbc.driver}"<propertyname="maxActive"value="10"<propertyname="minIdle"value="5"<!--spring管理sqlsessionfactorymybatisspring整合包中的<beanid="sqlSessionFactory"數(shù)據(jù)庫連接池<propertyname="dataSource"ref="dataSource"加載mybatis的全局配置文件<propertyname="configLocation"value="classpath:mybatis/SqlMapConfig.xml"<bean<propertyname="basePackage"value="cn.e3mall.mapper"DruidDBCP、C3P0、BoneCP、Proxool、JBossDataSource。Service<?xml<?xmlversion="1.0"encoding="UTF-<beans""""""util-<ponent-scanbase-<beans<beans""" util-事務(wù)管<beanid="transactionManager"數(shù)據(jù)源<propertyname="dataSource"ref="dataSource"通知<tx:adviceid="txAdvice"transaction-<!- 行為<tx:methodname="save*"propagation="REQUIRED"<tx:methodname="insert*"propagation="REQUIRED"<tx:methodname="add*"propagation="REQUIRED"<tx:methodname="create*"propagation="REQUIRED"<tx:methodname="delete*"propagation="REQUIRED"<tx:methodname="update*"propagation="REQUIRED"<tx:methodname="find*"propagation="SUPPORTS"read-only="true"<tx:methodname="select*"propagation="SUPPORTS"read-only="true"<tx:methodname="get*"propagation="SUPPORTS"read-only="true"切面<aop:advisoradvice-pointcut="execution(*cn.e3mall.service.*.*(..))"<?xml<?xmlversion="1.0"encoding="UTF-<beans"""""mvc-<ponent-scanbase-package="cn.e3mall.controller"<mvc:annotation-driven<propertyname="prefix"value="/WEB-INF/jsp/"<propertyname="suffix"value=".jsp"<?xml<?xmlversion="1.0"encoding="UTF-<web-app"/xml/ns/javaeeid="WebApp_ID" y-name>e3- y- e-file- e-e-<e-file-加載spring容器<context-<param-name>contextConfigLocation</param-<param-value>classpath:spring/applicationContext*.xml</param-</context-<listener-class>org.springframework.web.context.ContextLoaderListener</listener-post<filter-name>CharacterEncodingFilter</filter-<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-<init-<param-name>encoding</param-<param-value>utf-8</param-</init-<filter-map<filter-name>CharacterEncodingFilter</filter-<url-pattern>/*</url-</filter-mapspringmvc<servlet-name>e3-manager</servlet-<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-contextConfigLocationcontextConfigLocationspringmvc的配置文件默認(rèn)在:WEB-INF/servlet的name+"-servlet.xml"--><init-<param-name>contextConfigLocation</para

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論