Creating a Controller
Explore how to create a REST controller in Kotlin for Spring Boot, define routes with GET methods, and test your endpoints effectively. This lesson helps you understand controller setup, routing, and running a Kotlin-based web application.
We'll cover the following...
Controllers
One of the core capabilities of Spring Boot is to auto-discover application components based on what it finds in the classpath. Among those components are controllers, which provide the routes for a web application. In the examples in this chapter, we’ll use this facility.
Use Kofu to Explicitly Configure Applications
If you’d like to explicitly configure the application, refer to the Spring-fua initiative and the Kofu DSLb that provide a fluent syntax to configure various properties. In addition to benefiting from a fluent Kotlin API, Kofu-based applications benefit from a significantly less startup time ...