MVC - rFronteddu/general_wiki GitHub Wiki

MVC

  • MODEL: Simple POJO with collection of properties which may or may not be used by the view
  • VIEW: Data as requested by the client. Implemented with JSP, Thymeleaf, Jackson, etc. Can be HTML, JSON, XML, text, etc.
  • CONTROLLER: Java class implemented to handle request mapping. Should be a "traffic cop" and contain minimal business logic. Typically works in conjunction with a service, which contains business logic.

SPRING MVC is a little more sophisticated: SPRING MVC