- Hands-On Microservices with Kotlin
- Juan Antonio Medina Iglesias
- 156字
- 2021-06-30 19:10:56
Defining Spring application context
Every Spring application requires a context, a place where every component is registered. We could think about it like a central directory of object instances created by our application. When we use the Spring Framework and create something, for example, a connection pool, it gets registered in our context or when we create our own components they will be registered as well. So, if in another part of the application we require that component, instead of creating it again we can just access it. However, this provides more advanced features. If we want, for example, to register a controller that handles HTTP requests, as we do in our example, we could just do it anywhere in our classes. Later, the application could use the component scan to find what controllers we have and wire them to web interfaces, without requiring any configuration. Let's understand the component scan better in the following section.
- UI圖標(biāo)創(chuàng)意設(shè)計(jì)
- Vue.js 3.x快速入門
- Deploying Node.js
- 深度學(xué)習(xí)經(jīng)典案例解析:基于MATLAB
- DevOps入門與實(shí)踐
- 從0到1:HTML+CSS快速上手
- AutoCAD VBA參數(shù)化繪圖程序開(kāi)發(fā)與實(shí)戰(zhàn)編碼
- The HTML and CSS Workshop
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Tableau 10 Bootcamp
- Mastering Python Design Patterns
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)驗(yàn)指導(dǎo)
- Struts 2.x權(quán)威指南
- scikit-learn Cookbook(Second Edition)
- 超簡(jiǎn)單:Photoshop+JavaScript+Python智能修圖與圖像自動(dòng)化處理