您的位置:首页 > 编程语言 > Java开发

eclipes 中添加spring 插件以及配置文件不提示class信息

2016-09-30 17:26 399 查看
一 安装
1、首先下载



记得是以update结尾的sts
2、在eclipse中安装插件 点击help 选择install new software



3、点击archive 添加 刚下载的插件包,选择所有的带有Spring IDE 结尾的。



一直点击下一步。最后重即可。

二 使用



新建里有这个就说明安装成功了。
下一步applicationcontext 添加头文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">

记得要在preference 里 的xml catlog 添加这些xtd。



最后打开applicationcontext。xml 要以

xml editor打开,就可以看到各种提示了。折腾我好久了。记录一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐