Basic steps for SSH framework construction and project development in eclipse

Source: Internet
Author: User

1. Download the SSH framework code and Eclipse plugin, address: http://yunpan.cn/QTCrdHF4xkEVp (extract code: 0E8D)

Note that it is important to be clear that the SSH framework is a package that is to be imported into its own project, which is a pre-developed Java file to be invoked in the projects, and that the Eclipse plugin is a tool for developing SSH-related projects in an eclipse environment that facilitates the user to build project management projects. Independent of the files and functions of the project itself. The two concepts must be clearly divided.

2, after the download is complete, unzip, will find that there are 5 folders, the first step is to use the spring plugins for Eclipse and Hibernate plugins for Eclipse folder inside the file is the Eclipse plug-in, If the zip file is extracted first, you will get feature and plugin two folders, after you get these folders, follow the add plugin in Eclipse method add plug-in: http://www.cnblogs.com/hewenwu/p/3795977.html

3, once the plugin has been added, you can set up the relevant project in eclipse

Take the example of creating a spring project:

New->other->spring project, fill in the basic information under the guidance of navigation

The most important thing is to import the library just downloaded, method:

On the project folder right click on Build path, click on the Library tab->add External jars to find the ssh\spring\spring-framework-4.0.5.release after the decompression \libs, there are many jar files, we can have selective import, general import Spring-core-4.0.5.release.jar and other files, is the specific situation

4. After importing the package, you can call the classes in it, such as:

Package Com.springinaction.chapter01.hello;

Import Org.springframework.beans.factory.BeanFactory;

Import Org.springframework.beans.factory.xml.XmlBeanFactory;

Import Org.springframework.core.io.FileSystemResource;

public class HelloApp {

public static void Main (string[] args) {Beanfactory factory = new Xmlbeanfactory (New Filesystemresource ("Hello.xml") );

}

}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.