Giter Club home page Giter Club logo

taotaomall's Introduction

分布式

需要系统之间配合才能完成整个业务逻辑,就是分布式系统。

Maven除了依赖管理,项目构建功能之外,还能对工程进行聚合、继承、依赖

  • 分布式架构,父工程应该是一个pom工程,其中定义依赖的Jar包的版本信息、Maven插件的版本信息。(只有版本信息,没有实际的Jar包/插件)

  • 创建CommonJar工程,存放通用工具类

数据库

项目的实际运行如果是高并发的,对数据库的查询最好是单表查询,提高数据处理效率。 对数据库表进行冗余存储,解决表的关联需求。(业务量增大到一定程度后,需要对数据库进行分库分表,单表查询就很方便)

前端显示EasyUI

datagrid

异步tree

树控件读取URL,子节点的加载依赖于父节点的状态

  • 当展开一个封闭的节点,如果节点没有加载子节点,它将会把节点id的值作为http请求参数并命名为id,通过URL发送到服务器上检索子节点。
  • 响应结果是如下格式的json数据
[{
	"id": 1,
	"text": "Node 1",
	"state": "closed"
}
...
]

如果当前节点为父节点,state为closed;叶子节点则为open

Dubbo管理服务层和表现层的通信

Dubbo监控中心(war包)

Linux中,放到tomcat的webapps目录下

如果监控中心和注册中心在同一台服务器上,无需任何配置。如果不在同一台服务器,需要修改配置文件: tomcat安装目录/webapps/dubbo-admin/WEB-INF/dubbo.properties

Nginx做反向代理

FastDFS存储图片、文件

KindEditor替换为最新的版本,不然网页的图片上传按钮无法显示

dubbo不支持 file,inputStream 这种文件、流的传输

规格参数模板

规格参数列表

  • tb_item_param中查询数据展示到jsp,单表查询,实现分页

实现规格参数模板的添加和删除

新增商品,展示规格参数模板,提交时,一并提交规格参数

完成具体商品的规格参数html页面展示编写

创建portal工程(门户网站)

  • 根据首页轮播图的数据结构,设计一张表,进行增删改查管理;其他部分的展示内容同理
    • 存在问题
      • 首页信息大量堆积,发布显得异常繁琐沉重
      • 内容繁杂,管理效率低下
      • 需要技术人员之间配合完成
      • 改版工作量大,可维护性差

使用内容管理系统解决上述问题

新增内容分类,需要返回主键id(自增),在mapper的xml文件中,insert的方法中添加如下

order="AFTER" :插入之后

<insert id="insert" parameterType="com.taotao.pojo.TbContentCategory">
    <selectKey keyProperty="id" order="AFTER" resultType="long">
        SELECT LAST_INSERT_ID()
    </selectKey>
    ...
</insert>

完成内容分类的增删改查

实现首页轮播图的展示

轮播图宽度显示 为width_b,待研究

首页并发量大,使用redis进行缓存

完成Jedis单机版(连接池)、集群版(内置连接池)的测试,编写redis相关的xml配置文件

taotaomall's People

Contributors

hunter1023 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.