aspose file tools*
The moose likes Spring and the fly likes developing a Spring Framework MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "developing a Spring Framework MVC" Watch "developing a Spring Framework MVC" New topic
Author

developing a Spring Framework MVC

Adam Confino
Ranch Hand

Joined: Sep 03, 2009
Posts: 48
Hey Java Gurus!

I am trying to learn Spring MVC. I started with their online tutorial at http://static.springsource.org/docs/Spring-MVC-step-by-step/.

Unfortunately my friend told me that Spring's online stuff is very dated (i.e. it doesn't use annotations, etc.) and may be counter-productive to learn.

Does anyone know of a good online tutorial of Spring MVC that demonstrates current practices?

As always, thanks so very much.

p.s. If this topic should be posted elsewhere, please let me know.


Just Another Guy Hooked on Java
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

I'll move it to our own dedicated Spring forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
I don't know, it's up to personal preference IMO.
I don't think using interfaces/superclasses are counter-productive. I prefer interfaces over Annotations, but it's only my preference. I think you should study both ways and decide what you're happy to use.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Edward Winchester
Ranch Hand

Joined: Sep 16, 2009
Posts: 65
I'm learning too and have found this page: http://static.springsource.org/spring/docs/2.5.x/reference/ useful and current. It's called a reference, but it does talk you through parts of it! I'm using Netbeans 6.7.1 which comes with Spring 2.5 so I don't need anything more up to date about Spring.

I've been wondering about why people would use Java annotations to hold things like table names and view names within the Java code rather than the XML files. This doesn't make a lot of sense to me . I thought the good things about XML configuration is that you don't need to alter the source code if you want to make changes to view names, etc. Perhaps I've totally got the wrong end of the stick w.r.t. annotations so welcome comments from the more experienced.

Ed
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Annotations add dependency in source code I don't know how that is better than implements interface or extends superclass.

Regarding JPA Annotations, I don't like it. It adds dependencies to JPA. What if we don't want to use JPA anymore?
Daniel Näslund
Greenhorn

Joined: Jul 14, 2009
Posts: 11
Adam Confino wrote:Hey Java Gurus!

I am trying to learn Spring MVC. I started with their online tutorial at http://static.springsource.org/docs/Spring-MVC-step-by-step/.

Unfortunately my friend told me that Spring's online stuff is very dated (i.e. it doesn't use annotations, etc.) and may be counter-productive to learn.

Does anyone know of a good online tutorial of Spring MVC that demonstrates current practices?

As always, thanks so very much.

p.s. If this topic should be posted elsewhere, please let me know.


Stefan Schmidt has written a good tutorial/example application using the 3.0 draft.
spring-finance-manager

It demonstrates a lot of the new features.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: developing a Spring Framework MVC