Apr 18th, 2011, 04:14 AM
Hello. I am a newbie to STS, Spring and Java. Need some guidance to setting up the development environment. Read the STS installation tutorial but it did not specify the environment. I know first i need to install a JDK. Then do i install the STS or eclipse ? Does STS need eclipse or its already with eclipse, so i dont need to install eclipse?
Another thing i am confused is about the spring library. I know STS include Maven and it will handle the spring dependency file, so do i still need to download the spring library ?
Any help or point me to the right documentation would be appreciated. Thanks.
Apr 18th, 2011, 04:38 AM
STS is Eclipse with a set of Spring tools already installed into it, so its easier just to download STS and use that instead of downloading Eclipse and getting all the plugins installed.
STS also includes a copy of tcServer which you can use for development. Again, this makes it easier as you don't need to download Tomcat and get it configured in Eclipse.
For Spring development, you can create a Spring template project. This uses Maven and downloads the relevant Spring libraries for you so you do not need to download Spring separately.
For more info about STS, check out the following Webinar.
Hope that helps.
Apr 18th, 2011, 05:10 AM
Thanks for a quick reply. So this means i just need the jdk and sts to get started. Great.
Thanks for the pointer to the videos. Will go though it. Thanks again.
Apr 19th, 2011, 08:31 AM
Spring can use xml, annotation and javaconfig. So which one do you use? Which one is the future trend? javaconfig? Which one to learn first?
Apr 19th, 2011, 08:40 AM
I use a bit of each.
I usually define items that I am never going to change (e.g. database connections or view resolvers) in XML.
I always use annotation injected beans rather than injecting via XML.
I don't use Java Config much, but mainly for accessing MongoDB via the new Spring stuff.
In essence, you probably need to learn all three, but if it was me, I would learn XML, Annotations and then Java config in that order.
Apr 19th, 2011, 09:16 AM
Ok, thanks. Will start learning them.
Is there any performance difference?
Can you use a mixture in one bean or use one for one bean and another for another bean? You understand what i am asking?