jQuery in Action, 2nd edition*
The moose likes Spring and the fly likes How to find a Compact Spring 3.0 MVC  tutorial with annotations? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to find a Compact Spring 3.0 MVC  tutorial with annotations?" Watch "How to find a Compact Spring 3.0 MVC  tutorial with annotations?" New topic
Author

How to find a Compact Spring 3.0 MVC tutorial with annotations?

Alex Narinsky
Greenhorn

Joined: Nov 07, 2012
Posts: 9
Can anybody recommend a compact Spring 3.0 MVC tutorial with annotations?

The tutorial has to have a working source code to download
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

How about this one
https://github.com/SpringSource/spring-mvc-showcase

That source code is kept up to date with new features. There was a blog/video that might be a little dated in that it won't cover the things that have been added to the src code since then but it is still mostly applicable . Find it here:
http://blog.springsource.org/2010/07/22/spring-mvc-3-showcase/


[How To Ask Questions][Read before you PM me]
Mario Alcantara
Greenhorn

Joined: Mar 29, 2011
Posts: 16
Here is another tutorial, it's a getting started

http://blog.springsource.org/2011/01/04/green-beans-getting-started-with-spring-mvc/
Alex Narinsky
Greenhorn

Joined: Nov 07, 2012
Posts: 9
Hello, I checked the tutorial from spring source but cannot retrieve the project - the git command gives me the connection error



git clone git://github.com/SpringSource/spring-mvc-showcase.git
Cloning into 'spring-mvc-showcase'...
fatal: unable to connect to github.com:
github.com[0: 207.97.227.239]: errno=No error
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

Maybe try forking it. Otherwise you can download it here:
https://github.com/SpringSource/spring-mvc-showcase/downloads
Alex Narinsky
Greenhorn

Joined: Nov 07, 2012
Posts: 9
Yes, this works. However, after importing as Maven project into Eclipse I am getting Eclipse errors:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (execution: default, phase: process-sources)
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.2:test-compile (execution: default, phase: process-test-sources)

What is the best way of dealing with these errors? Please, note that I do not plan to use AspectJ now
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

Are you using STS? How are you importing the project, and is this the spring-mvc-showcase example? This error usually occurs when you are using the new m2e plugin with an older POM files that does not adhere to all the new rules. You can tell STS to use the older one by selecting the modules tab in the dashboard selecting the m2e plugin and clicking install. This will revert back to the old m2e plugin, you can re-install the new one by simply following the same process. The other option is to fix the POM to be compatible.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find a Compact Spring 3.0 MVC tutorial with annotations?
 
Similar Threads
Spring MVC
Learning spring question (2.5 vs 3.0)
JSR 286/MVC Support in Spring 3.0
developing a Spring Framework MVC
Spring 3.0 MVC - Not getting to the Controller.java