Configure Spring in Eclipse

Source: Internet
Author: User
1. Install Eclipse3.7

Recommended for use: Eclipse Classic version

Download Address: http://www.eclipse.org/downloads/or http://download.eclipse.org/eclipse/downloads/

2. Install Springide

If you want to support visualization you need to install first: http://download.eclipse.org/tools/ajdt/37/update/

Springide Update Address: http://dist.springsource.com/release/TOOLS/update/e3.7

Installation selection: Spring IDE core,spring IDE AOP extension,spring IDE OSGi extension,

Spring IDE AJDT Integration

3. Configuring the Target Platform

3.1 Configuration without Spring IDE Support

(1) Temporarily create a directory: TargetPlatform, recommended in this directory in the new level of directory bundles, will SPRINGDM the required jar to

And the required dependent jar are placed in the directory;

(2) Select Window>preference>plug-in Development>target in Eclipse Platform>add>noting:start

Whith an enpty target defination>next>add>directory>browse to a directory specifically containing bundle;

(3) Activate the Target:target under the defination to the current workspace only one is active, select the new checkbox

Select Apply.

3.2 Using Springide Support for the Target platfomr

Select Window>preference> in Eclipse

Plugin development>targetplatform>add>template:spring Dynamic Modules for OSGi (tm)

Service Platform 1.1.2,eclipse will automatically identify the associated jar bundle components that the software brings.

3.3 Activate Springide support the project

Right-click the project name and select Spring Tools in the context menu, ADD spring Project nature.

4. Development

(1) Create SPRINGDM configuration file:

New > Others > Spring > Spring Bean Configuration file, enter file Name:osgi-context.xml;

(2) Code completion settings in multiple Spring configuration files: Project name Right-click, select Properties>spring>beansupport

>config Set

(3) Web Component Component Development

Need to increase in MANIFEST.MF: Bundle-classpath;

The output directory needs to be changed to: Projectname/classes.
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.