1

I have seen some projects using a package named "resources" and some other projects using a package named "controllers", to put RestControllers. Which is the most common convention for a package name that contains rest controllers? If I'm writing rest controller for accessing user service, should the controller be named UserController or UserResource?

Tony
  • 131
  • 1
  • 6
  • Possible duplicate: https://stackoverflow.com/questions/12397940/spring-and-mvc-proper-project-structure – 4EACH Aug 15 '21 at 13:20

2 Answers2

0

Both meaning the same, but Controller is more common. UserController is ok

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 06 '22 at 10:06
-1

Controller

Is for Spring MVC

Resource

Is for Jersey