2
2
.
.
4
4
E
E
n
n
d
d
p
p
o
o
i
i
n
n
t
t
I
I
n
n
f
f
o
o
Following tutorials explain how to work with Endpoints.
Endpoint is Method called for specific URL.
Spring collects Endpoints from Controllers to properly configure Application Server (like Tomcat).
Application Server needs to know for which URL which Method needs to be called.
Endpoint can return
View (HTML, JSP, Thymeleaf)
Data (Text, JSON)
In the @RestController Endpoint can only return Data.
In the @Controller Endpoint returns
View by default
Data if it is Annotated with @ResponseBody
Endpoint Annotations define
for which URL Endpoint should be called ("/Hello")
for which type of HTTP Request Endpoint should be called (GET, POST, UPDATE, DELETE)