2
2
.
.
3
3
C
C
o
o
n
n
t
t
r
r
o
o
l
l
l
l
e
e
r
r
I
I
n
n
f
f
o
o
Following tutorials explain different Controller Annotations.
Bu using Controller Annotations you are telling Spring that Class contains Endpoints (Methods called for specific URLs).
Spring needs to collect these Methods to properly configure Application Server (like Tomcat).
Application Server needs to know for which URLs which Method needs to be called.