The Controller Annotation - geetools/geemvc GitHub Wiki
Simply put: the @Controller annotation marks a Java class as being a bean of type controller. When geeMVC needs to find a controller that can deal with a particular request, it will include all beans marked with this annotation.
In the following example you can see where the annotation has been placed. If it was not there geeMVC would not know that this controller existed and therefore not forward any requests to it.
package com.example;
import com.geemvc.annotation.Controller;
import com.geemvc.annotation.Request;
@Controller
public class HelloWorld {
@Request("/hello/world")
public String sayHello() {
return "view: hello-world";
}
}