by InclinedPlane · 12y ago · 0 comments
I don't think it's unreasonable to prefer the simpler projects that the smaller frameworks are a good fit for, of course! Sometimes though the project is big enough that something like Spring is going to save you time and headaches in the medium and long run.
Controller: Add an @Controller annotation and some @RequestMappings and you're done.
Model: Usually these have no Spring dependency at all, though there are annotations you could put on some of the fields for various tasks if you'd like.
View: Also mostly unrelated to Spring. Write a Thymeleaf template or JSP and return the name of it from the appropriate controller method.