Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up a Spring 3 MVC project with JPA on Eclipse

I'm new to the whole Spring and JPA world, and I'm trying to set up a project so I can work on a small project I thought for learning purposes. I find this whole setting up very frustrating because of all the configuration it requires.

What I want to do is setup a Spring 3 MVC project and a have the entities in a separate JPA project (with Hibernate as the vendor), but I couldn't find any step-by-step tutorials or something like that to help me get started.

I'd really appreciate if you point me to a simple tutorial.

like image 360
Bennyz Avatar asked Nov 20 '25 04:11

Bennyz


2 Answers

I suggest you start here, IMO he has the best beginners tutorials

like image 152
Marco Aviles Avatar answered Nov 21 '25 19:11

Marco Aviles


I finally got something to work (it's not easy coming from Visual Studio where everything is pre-canned, out of the box for you :) )

This URL did the trick for me: http://viralpatel.net/blogs/2010/06/spring-3-mvc-create-hello-world-application-spring-3-mvc.html

However, I did have a couple of snags before it worked, even with that. The first was that I didn't have commons-logging.jar in my WEB-INF/lib folder, and the second was that I didn't have jstl.jar in the same. For the first, I had to look in the spring release itself, and for the second, I had to look in the tomcat distribution.

Hope this helps.

like image 41
Erik Dietrich Avatar answered Nov 21 '25 17:11

Erik Dietrich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!