4 ms·
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 con
by MoosePlissken 13y ago
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.