Anthony Anthony - 5 months ago 22
Java Question

Good Development setup for Spring-MVC/Hibernate/MySql

I'm staring a new project using Spring3-MVC w/ Hibernate and MySql and am envisioning the following development setup:


  • Maven

  • Eclipse IDE (Having used netbeans in the past, I want to give Eclipse a run)

  • Tomcat



Questions:


  • What will be the life-cycle of development?

    • I've developed struts2 applications with the GF application server and Netbeans IDE in the past. The setup and lifecycle of making a change has been quite slow. Making change to java code, netbeans building code, deploying to GF. I understand these are common points of working with java and webapplication unless I go the Grails way. However, now since there are a few container-less solutions for java web apps - does it make the process a bit fast/east?


  • Should I use the embedded Tomcat plugin?

  • In netbeans there is a way to add servers and start a maven project by associating the project with the server. Is there something similar in Eclipse?

  • Which version of Eclipse should I be downloading?

    • There seem to be so many I downloaded the javaEE version but it didn't have a way to start a maven project.



Answer

You can use embedded tomcat plugin, if you are going with Maven, go with maven tomcat plugin. And deploy your application with:

mvn tomcat:run

In netbeans there is a way to add servers and start a maven project by associating the project with the server. Is there something similar in Eclipse?

Yes you can add tomcat server in eclipse, and start/stop tomcat within eclipse, it also allows you to debug easily, by just adding the source projects.

Which version of Eclipse should I be downloading?

Latest :) Eclipse Juno 4.1 I believe.

For starting on maven project, check the maven getting-started guide

Also, you can use maven plugin for eclipse m2eclipse

Comments