# Spring Controller

A Spring controller is a class marked @Controller whose @GetMapping methods answer a URL by adding data to the model and naming the template to show.

![Cheat sheet: Spring Controller](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7ed0cf408f3f4cec8f61151f26641dff.webp)

- Category: Spring Boot
- Level: Journeyman
- Tags: Spring Boot, thymeleaf
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/spring-controller-cheat-sheet
