|
159 | 159 | ## Spring FAQs
|
160 | 160 |
|
161 | 161 | 1. __BeanFactory v/s ApplicationContext__<br>
|
162 | | - BeanFactory | ApplicationContext |
163 | | - ----------------|-------------------- |
164 | | - This is the root interface for accessing the Spring container. | The ApplicationContext is the central interface within a Spring application that is used for providing configuration information to the application. |
165 | | - Provides object when `getBean()` is called | Provides a singleton object as soon as the instance of ApplicationContext IOC is created |
166 | | - `XMLBeanFactory`|`ClassPathXmlApplicationContext` |
| 162 | + <table> |
| 163 | + <th> |
| 164 | + <td>`BeanFactory`</td> |
| 165 | + <td>`ApplicationContext`</td> |
| 166 | + </th> |
| 167 | + <tr> |
| 168 | + <td>This is the root interface for accessing the Spring container.</td> |
| 169 | + <td>The ApplicationContext is the central interface within a Spring application that is used for providing configuration information to the application.</td> |
| 170 | + </tr> |
| 171 | + <tr> |
| 172 | + <td>Provides object when `getBean()` is called.</td> |
| 173 | + <td>Provides a singleton object as soon as the instance of ApplicationContext IOC is created.</td> |
| 174 | + </tr> |
| 175 | + <tr> |
| 176 | + <td>`XMLBeanFactory`</td> |
| 177 | + <td>`ClassPathXmlApplicationContext`</td> |
| 178 | + </tr> |
| 179 | + </table> |
167 | 180 |
|
168 | 181 | 2. __Basic Spring Configuration File__<br>
|
169 | 182 | Spring configuration file is a file with `.xml` extension and the file contains information about the classes and interfaces and their dependencies. Using this file the spring container controls the life cycle of a spring bean and also Dependency Injection is achieved.
|
|
272 | 285 | - DI:
|
273 | 286 | > Dependency Injection (DI) is a design pattern used to implement IoC. It allows the creation of dependent objects outside of a class and provides those objects to a class through different ways. Using DI, we move the creation and binding of the dependent objects outside of the class that depends on them.
|
274 | 287 |
|
| 288 | +15. __Basic Spring Modules__ <br> |
| 289 | + - Spring Core Module |
| 290 | + - Spring Context Module |
| 291 | + - Spring DAO Module |
| 292 | + - Spring ORM Module |
| 293 | + - Spring AOP Module |
| 294 | + - Spring WEB-MVC Module |
| 295 | + |
| 296 | +16. |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
275 | 312 | ### Working on more content! Check soon (of course before exam)
|
0 commit comments