Announcement Announcement Module
Collapse
No announcement yet.
How many controllers can it have a project? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How many controllers can it have a project?

    Hi,

    Iīm new with Spring, I have one doubt about controllers. How many controllers can I have in a project?
    I had developed a controller for manage some pages that for manipulate "users", now I want to manage other things that it isnīt "user". Must I do other controller?

    Thanks.

  • #2
    It is always good to have one controller class per one domain object to manipulate all operations (CRUD and as many as get combination of data set on the same domain object).

    If you are dealing with different domain object to manipulate, then have it in another controller class.

    Comment

    Working...
    X