Hi guys, I'm still new to Spring and I haven't done Java dev in a while. I'm current a .NET developer.
My question is, what is the proper setup for a local development environment? I understand I need the latest JDK, and Eclipse/NetBeans. But do I also need a web server like Tomcat?
Are there articles about how to wire up Eclipse, Spring and Tomcat together into a seamless development environment?
I'm used to having Visual Studio's built-in web server, Cassini. I just write my code, then hit Debug and it's all up and running for me. With Java, it's a little more hairy. Any help would be much appreciated.
Joined: Jun 15, 2008
I assume you want to use eclipse with tomcat and integrate Spring MVC 3.
if you use Eclispe:
file -->new --> create dynamic web project
below you will see server right click add server
add your tomcat path
For Eclipse you have different options. Technically you don't need Spring support at all, but then it is not fun (XML without any support like autocompletion for class names? Nah.) ;-). You can install the Spring IDE from the marketplace, it's a set of helpful plugins. Or download the SpringSource Tool Suite from the SpringSource site. Or you can use MyEclipse, a commercial pre-built Eclipse package that includes Spring Support (plus a lot of other helpful stuff). The latter would be closest to the VisualStudio experience, but I would go for the first.
If you download STS Spring Tool Suite, then it will come with tc server which is Tomcat as a server already setup. So you create your web app code and you can run it directly on the Tomcat tc server automatically, just like you do in Visual Studio.