• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

developing a Spring Framework MVC

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll move it to our own dedicated Spring forum.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic