Re:Top 100 Most Popular Scala Libraries – Based on 10,000 Gi...
by MoosePlissken on Thursday December 26, 2013 @11:40AM
(#6966766)
Are you using an especially old version of Spring? I work with Spring MVC on a pretty regular basis and I've never had that much trouble with defining a new controller/model/view.
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.
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.