I just installed Springsource Tool Suite as a plugin to eclipse kepler. I need to develop database-driven-web applications with it. I have thought I could do that using hibernate, but the eclipse STS plugin that I found for hibernate seems to only work with jboss server. I want to work with tomcat 7 server. Can someone suggest a good way to use hibernate with STS eclipse and tomcat? Or is there a better way besides eclipse to do database integration with STS eclipse and tomcat? Links to download tools, and to modern tutorials with the current versions of each tool, would be greatly appreciated. I just created a new Spring MVC project using the template in STS eclipse kepler. It would be nice to have tutorials and tools that work with that toolset. Even a fully working database-driven web application sample code to study.
Your requirements as listed below:
Spring Tools Suite : http://www.springsource.org/downloads/sts-ggts (Choose the appropriate version)
For Tomcat 7 to be used on STS , you will need to download it from this link: http://tomcat.apache.org/download-70.cgi
Update to JDK 7. Link: http://www.oracle.com/technetwork/java/javase/downloads/index.html
To setup tomcat 7 in Spring Tools Suite (essentially Eclipse configured for Spring) use this link : http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html (Follow the same procedure for STS)
You will also need to install a DBMS. Try using MySQL . Download it from : http://dev.mysql.com/downloads/mysql/
Also if you decide to use Eclipse for Spring (I do.. :P ), use this : http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplerr
If you decide to use Kepler, you will need to install STS plugin for Kepler. Try: http://marketplace.eclipse.org/content/spring-tool-suite-sts-eclipse-kepler-43#.UhwuRNJkOSo
Try the following link for your first project: http://www.mkyong.com/spring/maven-spring-hibernate-mysql-example/
EDIT: As a developer it is very essential to know what is the standard way of implementing a Spring+ORM application. It's practice to to include Maven as a dependency management tool. Follow the links:
Download Maven: http://maven.apache.org/download.cgi
Setup maven in Eclipse : Setting up new Maven In eclipse
Link to website using maven : Just Google.. :P
As for the no Maven part, try understanding why actually is maven used. Follow the link: http://www.tutorialspoint.com/spring/spring_environment_setup.htm , to setup a spring envirnoment without maven. When you use Hibernate, just add the necessary jars to WEB-INF/lib folder. As simple as that.
Hope it helps. :)
Related
What's the difference between these
Eclipse with the Spring IDE plugin
Spring Tool Suite (STS) alone
I ask because STS says it's built on top of Eclipse, and I wonder what differences it has over simply using a plugin that adds similar functionality to "vanilla" Eclipse.
It's true, STS is built on top of Eclipse. The difference is only related to another products support from the STS installation, like Roo, Pivotal tc Server, Cloud Foundry and getting started guides, but you could also include this features in your Eclipse installation.
So STS gives a complete solution around Spring features and simplifies the developer environment install, that's the key difference.
As Martin Lippert explains in the forums:
"So you can end-up having the same features in STS and your existing
Eclipse installation after installing the STS features into it."
You could find more details on the Spring forums.
Details on features: STS features and Spring IDE plugin features.
Spring Tool suite has ready to go features specially designed to spring supported projects and cloud environment. And Eclipse is more generic where we've to add the plugins and extensions for our platform setup.
There is already an article about this in DZone Spring IDE and the Spring Tool Suite - Using Spring in Eclipse.
While the Spring IDE project provides a set of plugins for the Eclipse
IDE, the Spring Tool Suite comes as a ready-to-use distribution of the
latest Eclipse releases with the Spring IDE components pre-installed.
This includes the tc Server integration for Eclipse (another IDE
extension that is provided by Pivotal as an open-source project) and
various other additions to Eclipse that turn the pure Eclipse IDE into
a ready-to-use, best-of-breed environment for enterprise Spring
application development.
I downloaded Eclipse Luna and i want to install the plugin for spring
What is the difference between: Spring IDE plugin and Spring tool suite plugin?
Which one should I download?
Eclipse+Spring Tool suite plugin = Spring Tool Suite release?
Download the Spring tools suite from the following URL and add the extracted libraries to the WEB-INF/lib folder of your dynamic web project.
http://spring.io/tools
or else
Go to Eclipse->Help->Install New Software
Add new site as follows:
Name: SpringSource Update Site for Eclipse 4.4
URL: http://dist.springsource.com/release/TOOLS/update/e4.4/
In the Spring Tool Suite you have more tools build into your IDE and the tools are configured.
As far as STS is concerned:
... comes with Maven, Spring Roo and tc Server developer edition pre-packaged and pre-configured (you can start using tc Server or
Spring Roo right away without the need to download or configure them
manually)
... comes with additional components pre-installed, like the Maven Integration for Eclipse (including the Maven Eclipse integration for
WTP, AJDT and Groovy/Grails)
I am starting to develop WebApp using Spring Framework. For that I know I have to use Spring Tool Suite. I went to the Eclipse site for downloads but I am having trouble knowing wich of the four types of downloads suggested in the page below should I choose, sicnce none of them seem to have Spring in its features ?
http://spring.io/tools/eclipse
Any help ?
Just for your consideration I wrote the following tutorials about STS
Installing Spring Tool Suite
Configuring Apache Maven
Getting Started: IDE & Projects
Configuring The Java Working Set
Structuring The Workspace
Complete and more detailed tutorials, available here: Spring Tutorial
Spring Tool Suite is a different download. It can be found here: http://spring.io/tools/sts .
Unless you are using Java EE which btw stands for Enterprise Edition,
I'd recommend just going with
Eclipse Luna -> Eclipse IDE for Java Developers
In addition to the full distribution downloads on http://spring.io/tools/sts (they are ready-to-use Eclipse distributions with pre-installed Spring tooling) you can also use an Eclipse installation and go to the Eclipse Marketplace to install the Spring tooling into your Eclipse instance.
I'm running Eclipse Juno 4.2 (upgraded from Indigo 3.7), with the Spring Tool Suite tools installed. A while ago I had installed Spring Roo 1.2.2.RELEASE, and configured the Roo plugin to point to the 1.2.2.RELEASE runtime.
I would now like to upgrade to Spring 1.2.4.RELEASE, but cannot find the runtime anywhere. I've looked on the Spring site, but cannot seem to find a download link to it anywhere.
So a few questions:
1) Is the runtime still required as a separate download and do I still need to configure Eclipse to point to it separately?
2) Where can I download the runtime from?
3) Why do I need the separate runtime? Why is STS/Eclipse not smart enough to use the Roo artifact that is included in my maven project?
I still don't why I need the separate runtime to configure Eclipse, however, I did finally find a download link for the latest ROO packages: http://docs.spring.io/downloads/nightly/release-download.php?project=ROO
I am taking my first steps developing web apps using Eclipse, Java EE, Hibernate, spring and hsqldb.
I installed the Helios version of Eclipse and installed WTP through the updater. But trying to install the plugins for others, I am having doubts.
Hibernate:
I tried the download jboss.org/jbosstools/updates/stable/ as the hostname in updater and it shows
JBoss Tools - 3.0.3.v200910211631N-H194-GA
JBoss Tools Integration for TPTP, BIRT - 3.0.3.v200910211631N-H194-GA
in the list.Which am I supposed to install?Where is the hibernate plugin?
hsqldb:
when I googled ,I got these links
sourceforge.net/projects/hsqldb-plugin/
Is this the one?what is the update host name I am supposed to give to eclipse?
spring:
i tried springide.org/updatesite/ .It shows a list of some 10 or more items..What should I select?core /spring IDE?
The HSQLDB plugin for eclipse is an extension that can be added from within eclipse. See here for details on how to set up and use.
http://article.gmane.org/gmane.comp.java.hsqldb.user/4633/