aspose file tools*
The moose likes Spring and the fly likes How many @controller class use in my application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How many @controller class use in my application" Watch "How many @controller class use in my application" New topic
Author

How many @controller class use in my application

sudarshan jadhav
Ranch Hand

Joined: May 28, 2012
Posts: 41
Hello everyone,
I am develop a large project using spring 3.0 and hibernate 3.0 technology in that i have use @controller class but my application is web based and no of process and billing generation process i am use in a application. so my problem is that how many @controller class is use in my project or only one @controller class is required for whole application project.
Thank you
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Since your Controllers will be POJOs, with no implements on Spring MVC interfaces, then it really is about what makes the most sense to you and your team. It ends up being the same questions as to what should all be in the same class, and what should not regardless of Spring or MVC.

Meaning if you have one Controller with hundreds of methods in it, then it is too big, too unmaintainable. But you don't want a hundreds of Controllers each with only one method in it.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How many @controller class use in my application
 
Similar Threads
sending parameter from one controller to other
Hibernate, JDO 2.0 and EJB 3.0
Could annotation based and xml based configuration be used together in spring 2.5?
Part 2 design question
@Controller annotation query