- 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.
- Python Game Programming By Example
- Mastering Apache Spark 2.x(Second Edition)
- 軟件測試實用教程
- JavaScript+jQuery網頁特效設計任務驅動教程
- 多模態(tài)數據分析:AGI時代的數據分析方法與實踐
- Kotlin進階實戰(zhàn)
- Joomla!Search Engine Optimization
- 深入理解Zabbix監(jiān)控系統(tǒng)
- ServiceDesk Plus 8.x Essentials
- Daniel Arbuckle's Mastering Python
- Hands-On GUI Application Development in Go
- C#網絡程序開發(fā)(第二版)
- Visual C++實用教程
- Learning HTML5 by Creating Fun Games
- 鋒利的SQL