|
12 | 12 | - [Bean Scope](#bean-scope)
|
13 | 13 | - [Bean life cycle](#bean-life-cycle)
|
14 | 14 | - [Aspect-oriented programming](#aspect-oriented-programming-aop)
|
15 |
| -- [Model-view-controller](#model-view-controller) |
| 15 | +- [Model-view-controller](#model-view-controller-mvc) |
16 | 16 | - [Data Access Objects (DAO)](#data-access-objects-dao)
|
17 | 17 | - [Code Samples Structure](#code-samples-structure)
|
18 | 18 | - [References](#-references)
|
@@ -110,13 +110,24 @@ class A {
|
110 | 110 | 2. create aspect for each point-cut (logger aspect, security aspect) which defines what will this aspect do?
|
111 | 111 | 3. create aspect configurations, which defines when and where will those aspects execute?
|
112 | 112 |
|
113 |
| -### Model-view-controller |
| 113 | +### Model-view-controller (MVC) |
114 | 114 |
|
115 | 115 | - it's a software architectural pattern in which your software is separated into 3 parts:
|
116 |
| - <img src="https://qph.fs.quoracdn.net/main-qimg-c3f2bef1693561dfb24e0f00aa592c80" title="MVC, src:quora.com" width="400" height="300" style="float:rigth;"> |
| 116 | + <figure> |
| 117 | + <blockquote> |
| 118 | + <img src="https://qph.fs.quoracdn.net/main-qimg-c3f2bef1693561dfb24e0f00aa592c80" title="MVC, src:quora.com" width="100%" height="300" > |
| 119 | + </blockquote> |
| 120 | + <figurecaption>Ideal MVC</figurecaption> |
| 121 | + </figure> |
117 | 122 | 1. Model: it's a component that handles anything related to data in the software
|
118 | 123 | 2. View: it's a component that deals with UI related stuff
|
119 | 124 | 3. Controller: it's a component that manages flow between the other two components and handles any business logic in the software
|
| 125 | + <figure> |
| 126 | + <blockquote> |
| 127 | + <img src="/diagrams/spring-mvc.png" title="Spring MVC" width="100%" height="300" > |
| 128 | + </blockquote> |
| 129 | + <figurecaption>Spring MVC</figurecaption> |
| 130 | + </figure> |
120 | 131 |
|
121 | 132 | ### Data Access Objects (DAO)
|
122 | 133 |
|
|
0 commit comments