From the course: Complete Guide to Spring MVC
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Declaration overview - Spring Tutorial
From the course: Complete Guide to Spring MVC
Declaration overview
- [Instructor] Declaration overview. I just want to say, great job staying on track with this course. By now, you've completed a few chapters and kept following along. You're likely quite comfortable with controller declarations. That means this section should feel like a breeze for you. While this chapter might initially seem lengthy, we'll be breaking it down into shorter focused snippets that explain concepts you've already seen in action earlier in the application. All right, starting off with controller decorations of the annotation controller. The purpose of the annotation controller is to mark the class as a Spring MVC controller. They're typically annotated with @Controller or @RestController, and I'll break down the key features of both, starting with @Controller. So the @Controller annotation indicates that the class contains methods to handle incoming HTTP requests, like GET, POST, et cetera. These are typically used for traditional MVC applications where the controller…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Declaration overview4m 32s
-
(Locked)
Declaration: AOP proxies6m 23s
-
(Locked)
Mapping requests overview5m 19s
-
Mapping requests: URI patterns5m 50s
-
(Locked)
Mapping requests: Consumable media types4m
-
(Locked)
Mapping requests: Producible media types3m 53s
-
(Locked)
Handler methods overview3m 9s
-
(Locked)
Handler methods: Method arguments2m 54s
-
(Locked)
Handler methods: Return values5m 2s
-
(Locked)
Handler methods: Type conversion4m 47s
-
(Locked)
Model3m 16s
-
(Locked)
@InitBinder overview7m 46s
-
(Locked)
Validation3m 33s
-
(Locked)
Exceptions overview4m 39s
-
(Locked)
Exceptions: Method arguments3m 56s
-
(Locked)
Exceptions: Return values6m 47s
-
(Locked)
Controller advice10m 32s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-