回顾
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
1.1.2 shared mysql database, independent Schema
1.1.3 shared mysql database table
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
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
4.1.2 LoginController.java find the information in the file to configure the package to the next web project cn.itcast.web.controller
interception configuration 4.1.3 modify the web.xml servlet will / changed * .do
Jump page process 4.2
4.3 companies list shows
4.4 Delete enterprises
The Controller 4.4.1
4.4.2 Service
4.4.3 Dao
4.5 Save enterprises
4.5.1 the Controller
4.5.2 Service
4.5.3 Dao
4.6 update business
and to keep similar
4.6.1 Controller
4.6.2 Service
4.6.3 Dao
5. 面试问题
数据库设计
独立mysql数据库服务(正式)
共享mysql数据库,独立database
共享数据库表(试用)
数据库的三范式和反三范式
作业:
1. 完成企业管理
2. 思考(企业列表分页)
3. 预习