Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alex Narinsky
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
Mario Alcantara
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe try forking it. Otherwise you can download it here:
https://github.com/SpringSource/spring-mvc-showcase/downloads
 
Alex Narinsky
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic