- Spring MVC Beginner’s Guide
- Amuthan G
- 175字
- 2021-07-16 11:25:43
The web application context
In a Spring-based application, our application objects live within an object container. This container creates objects and associations between objects, and manages their complete life cycle. These container objects are called Spring-managed beans (or simply beans), and the container is called an application context in the Spring world.
A Spring container uses dependency injection (DI) to manage the beans that make up an application. An application context (org.springframework.context.ApplicationContext
) creates beans and associate beans together based on the bean configuration and dispenses beans on request. A bean configuration can be defined via an XML file, annotation, or even via Java configuration classes. We will use only XML- and annotation-based bean configurations in our chapters.
A web application context is the extension of an application context, designed to work with the standard servlet context (javax.servlet.ServletContext
). A web application context typically contains frontend-related beans, such as views and view resolvers. In the first chapter, we created an XML file called DefaultServlet-servlet.xml
, which is nothing but a bean configuration file for our web application context.
- Building Computer Vision Projects with OpenCV 4 and C++
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(hù)(第2版)
- 基于OPAC日志的高校圖書館用戶信息需求與檢索行為研究
- ZeroMQ
- 大數(shù)據(jù)精準(zhǔn)挖掘
- 新基建:數(shù)據(jù)中心創(chuàng)新之路
- Construct 2 Game Development by Example
- 數(shù)據(jù)庫應(yīng)用系統(tǒng)開發(fā)實例
- 數(shù)據(jù)修復(fù)技術(shù)與典型實例實戰(zhàn)詳解(第2版)
- 數(shù)據(jù)庫查詢優(yōu)化器的藝術(shù):原理解析與SQL性能優(yōu)化
- Hands-On Deep Learning for Games
- 標(biāo)簽類目體系:面向業(yè)務(wù)的數(shù)據(jù)資產(chǎn)設(shè)計方法論
- Artificial Intelligence for Big Data
- Access 2010數(shù)據(jù)庫應(yīng)用技術(shù)教程(第二版)
- 數(shù)據(jù)庫原理及應(yīng)用實驗:基于GaussDB的實現(xiàn)方法