This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

developing a Spring Framework MVC

 
Adam Confino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move it to our own dedicated Spring forum.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Edward Winchester
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic