The current best practice for controllers is to use the @Controller annotation and the @RequestMapping annotation to set up controllers in code and map them to views.  There are several examples of this in the module that you should be able to follow.