PDA

View Full Version : RECENT Spring tutorial/examples w/M, V, C, Eclipse, validation, persistence, security



jbeck
Jul 26th, 2012, 07:11 PM
Hello Spring developers, sorry for this long post:

Just getting started with Spring, read "Just Spring", a lot of springsource videos, blog posts, and installed the MVC showcase ( nice, but not really a learning experience ) - my background is Struts, but not an expert.

I am interested in getting a full-fledged working MVC app and building it out, so I can use as a template for creating other apps, while learning.

I am using the latest everything, (well, everything that comes with the latest STS 2.9.2 (this week)).
I've created and run a new 'STS-> spring template project' that creates a hello page and a considerable file/directory structure.

I've spent dozens of hours over the past months, searching for RECENT tutorials, blogs, etc and really not a single? pertinent 'good' example tutorial w/code ( um, not Spring 2.5, not XML-based) based on the latest and greatest. Books anyone (again, not Spring 2.x)?

From my working 'hello world' I'd like learn how to add (ideally, to any project) and by using Eclipse tooling when possible:

*authorization/security
*DB access and persistence with hibernate and MySQL best practices
*Form validation (at the client level), and when submitting a form (in the controller).

Hoping to learn while doing, so just downloading working code is OK, but I need to infer too much: too much guesswork as to what's happening. Is there a 'scaffolding' approach to adding components, amongst the Eclipse menus? Maybe I should have started with a different project type?

I'm interested in finding tutorials, etc, based on Spring's annotation-based approach, using as little xml as possible. Using classes to configure a system look interesting too, but xml - I understand there is a minimum bit of xml required, of course. Also finding Java 5+ Spring examples that leverage using Generics would be awesome.

Not interested in Roo, groovy, grails, just pure spring, not even AOP while getting started.

I Really want to develop some Spring expertise, and willing to put in the time...thanks very much for your help,


Jeff Beck

NicoTexas
Jul 27th, 2012, 11:01 AM
I suggest you the Pro Spring MVC with Web Flow book from APress. It's been published in June and covers Spring 3.1.