Project 2

回顾
1.	saas模式 
2.	业务逻辑
3.	原型分析和用例图
4.	SSM整合(日期处理和统一异常处理)

More than one tenant database design
multi-tenant: Multi-tenancy is a software architecture design, software can host multiple rental companies jointly use.

Multi-tenant: saas mode

1.1 Database Design
1.1.1 independent Mysql database server
Here Insert Picture Description
1.1.2 shared mysql database, independent Schema
Here Insert Picture Description
1.1.3 shared mysql database table
Here Insert Picture Description
Saas software
trial version (beta): a shared database tables
full version (paid version): Independent database

2 Database Design

三范式:
	1nf : 保证每列的原子性   (做到每列的不可拆分)
	2nf:  非主属性依赖于主属性 (每个表只做一件事)
	3nf  消除传递依赖 (消除推导关系)
	以时间换空间
反三范式: 不是不遵守三范式,而是对其中某些内容做修改(第三范式)
    冗余字段 : 被推导出的字段
	以空间换时间

2.1 Database Modeling
database model: display the database for each table, and the table in the form of a graphical
database modeling: Use powerdesginer tool to draw graphics database

Here Insert Picture Description
3. AdminLTE template
popular front page framework:: easy to build beautiful and management background

4 business management
to build front-end environment 4.1
4.1.1 find information on all of the pages into the web module

Here Insert Picture Description

4.1.2 LoginController.java find the information in the file to configure the package to the next web project cn.itcast.web.controller
Here Insert Picture Description
interception configuration 4.1.3 modify the web.xml servlet will / changed * .do

Here Insert Picture Description
Jump page process 4.2
Here Insert Picture Description
4.3 companies list shows
4.4 Delete enterprises

Here Insert Picture Description
The Controller 4.4.1
Here Insert Picture Description
4.4.2 Service
Here Insert Picture Description
4.4.3 Dao
Here Insert Picture Description
4.5 Save enterprises
Here Insert Picture Description
4.5.1 the Controller
Here Insert Picture Description
4.5.2 Service
Here Insert Picture Description
4.5.3 Dao
Here Insert Picture Description
4.6 update business
and to keep similar

4.6.1 Controller
Here Insert Picture Description
4.6.2 Service
Here Insert Picture Description
4.6.3 Dao
Here Insert Picture Description

5.	面试问题
数据库设计
	独立mysql数据库服务(正式)
	共享mysql数据库,独立database
	共享数据库表(试用)
数据库的三范式和反三范式

作业:
1.	完成企业管理
2.	思考(企业列表分页)
3.	预习

Guess you like

Origin blog.csdn.net/AdamCafe/article/details/91907528