Hi, one quick question. Based on my current project architecture I have only one Controller class to which my UI is connecting by @RequestMapping (value = "/<some string>", method=RequestMethod.GET). Problem is day by day that controller class is getting bigger as our UI requirements are changing. Please suggest me what will be the best way to break this controller class into small sub-classes.
You can create different controller classes as per the requirement like one controller can only handle the navigation requests, one controller can handle specific functionality request, other handle another request.
In case of handling functionality related reuest where you are expose those as rest service, use generic pattern at class level.