- 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.
- Advanced Splunk
- C++程序設(shè)計(jì)教程
- Android項(xiàng)目開(kāi)發(fā)入門教程
- CMDB分步構(gòu)建指南
- R語(yǔ)言游戲數(shù)據(jù)分析與挖掘
- FFmpeg入門詳解:音視頻流媒體播放器原理及應(yīng)用
- 深入淺出Android Jetpack
- Building Cross-Platform Desktop Applications with Electron
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Python數(shù)據(jù)結(jié)構(gòu)與算法(視頻教學(xué)版)
- Kotlin從基礎(chǔ)到實(shí)戰(zhàn)
- ASP.NET求職寶典
- C語(yǔ)言程序設(shè)計(jì)
- Microsoft HoloLens By Example
- HTML5與CSS3權(quán)威指南