eclipse 中配置spring
来源:互联网 发布:文笔好的网文推荐知乎 编辑:程序博客网 时间:2024/06/02 02:07
1. 安装Eclipse3.7
推荐使用:Eclipse Classic版本
下载地址:http://www.eclipse.org/downloads/或http://download.eclipse.org/eclipse/downloads/
2. 安装SpringIDE
如果要支持可视化操作需先安装:http://download.eclipse.org/tools/ajdt/37/update/
SpringIDE更新地址:http://dist.springsource.com/release/TOOLS/update/e3.7
安装选择: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)临时创建一个目录:TargetPlatform,推荐在该目录下在新建一级目录bundles, 将SpringDM所需要的JAR以
及所需要的依赖JAR均放置在 该目录 下;
(2) 在Eclipse中选择Window>Preference>Plug-in Development>Target Platform>Add>Noting:Start
whith an enpty target defination>Next>Add>Directory>Browse至具体包含Bundle的目录;
(3) 激活该Target:Target下的Defination对当前的Workspace只能有一个是Active的,选择新建的Checkbox
选择Apply。
3.2 Using SpringIDE Support for the Target Platfomr
在Eclipse中选择Window>Preference>
Plugin Development>TargetPlatform>Add>Template:Spring Dynamic Modules for OSGi(tm)
Service Platform 1.1.2,Eclipse将自动识别出本软件自带的相关的JAR Bundle组件。
3.3 激活SpringIDE支持该工程
右击项目名称,在上下文菜单中选择"Spring Tools","Add Spring Project Nature"。
4. 开发
(1) 创建SpringDM配置文件:
New > Others > Spring > Spring Bean Configuration File, 输入File Name:osgi-context.xml;
(2) 多个Spring 配置文件中代码自动完成设置:项目名称右击,选择Properties>Spring>BeanSupport
>Config Set
(3) Web Component组件开发
需在MANIFEST.MF中增加:Bundle-ClassPath;
需将Output目录改成:ProjectName/classes。
推荐使用:Eclipse Classic版本
下载地址:http://www.eclipse.org/downloads/或http://download.eclipse.org/eclipse/downloads/
2. 安装SpringIDE
如果要支持可视化操作需先安装:http://download.eclipse.org/tools/ajdt/37/update/
SpringIDE更新地址:http://dist.springsource.com/release/TOOLS/update/e3.7
安装选择: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)临时创建一个目录:TargetPlatform,推荐在该目录下在新建一级目录bundles, 将SpringDM所需要的JAR以
及所需要的依赖JAR均放置在 该目录 下;
(2) 在Eclipse中选择Window>Preference>Plug-in Development>Target Platform>Add>Noting:Start
whith an enpty target defination>Next>Add>Directory>Browse至具体包含Bundle的目录;
(3) 激活该Target:Target下的Defination对当前的Workspace只能有一个是Active的,选择新建的Checkbox
选择Apply。
3.2 Using SpringIDE Support for the Target Platfomr
在Eclipse中选择Window>Preference>
Plugin Development>TargetPlatform>Add>Template:Spring Dynamic Modules for OSGi(tm)
Service Platform 1.1.2,Eclipse将自动识别出本软件自带的相关的JAR Bundle组件。
3.3 激活SpringIDE支持该工程
右击项目名称,在上下文菜单中选择"Spring Tools","Add Spring Project Nature"。
4. 开发
(1) 创建SpringDM配置文件:
New > Others > Spring > Spring Bean Configuration File, 输入File Name:osgi-context.xml;
(2) 多个Spring 配置文件中代码自动完成设置:项目名称右击,选择Properties>Spring>BeanSupport
>Config Set
(3) Web Component组件开发
需在MANIFEST.MF中增加:Bundle-ClassPath;
需将Output目录改成:ProjectName/classes。
- eclipse 中配置spring
- 在Eclipse中配置Spring
- 在eclipse中配置spring工程
- eclipse 中spring项目配置hibernate-tools
- 在Eclipse中利用Gradle配置Spring
- Eclipse中spring mvc配置实例详解
- eclipse中配置Spring的xsi:schemaLocation
- 配置spring+eclipse
- eclipse配置spring
- Eclipse配置Spring IDE
- eclipse Spring MVC 配置
- eclipse spring+mybatis配置
- Eclipse 配置Spring-tools
- Eclipse中Spring环境配置以及跑个Helloworld
- eclipse中配置Spring配置文件自动提示和命名空间
- 在eclipse中配置一个简单的spring入门项目
- 基于Maven在Eclipse中创建&配置spring mvc
- Eclipse下配置spring应用
- vc文件操作,内存映射
- 学习小杂记
- 双目视觉算法研究(二)相机模型和直接线性法(DLT)
- 解决linux进入时提示“用户的$HOME/.dmrc 已被忽略”
- Java内存原型分析:基本知识
- eclipse 中配置spring
- 再认识虚函数表,及虚函数
- 非常简单的Python HTTP服务
- betwixt xml转换成对象(XML节点大写)
- @@IDENTITY与SCOPE_IDENTITY()
- 在PopupWindow中不可以使用SurfaceView
- 2013 编程之美挑战赛 集会
- java中使用公钥加密私钥解密原理实现license控制
- 安装与配置windbg的symbol(符号)