手动添加 schema文件,方法如下: windwos->preferences->myeclipse->files and editors->xml->xmlcatalog 点击“add”,在出的窗口中的keyTType中选择URL,在locationspring-beans-2.5.xsd中选择"File system",然后spring解压目录的dist/resources目录中选择Spring-beans-2.5.xsd,回到设置窗口的时候不要急着关闭窗口,应把窗口中的Key Type改为SchemaLocation,key改为http://www.springframework.org/schema/beans/spring-beans-2.5.xsd ************************************************************** ?
手工添加spring配置文件的DTD描述
window--》preferences--》MyEclipse--》Files and Editors--》XML--》XML Catalog?
???
1)点击ADD?
2)Key Type:选择URL
?? Location:点击浏览--》找到spring源码包--》dist --》resources --》?
???????????? spring-beans-2.X.xsd(根据你使用的spring版本决定)?
???????????? 将? 它的完整路径\spring-beans-2.X.xsd 填写到location一栏中?
3)此时修改Key Type 为Schema Lcation?
4)Key :在给出的字符串后添加 -->? /spring-beans-2.X.xsd?
5)重新打开配置文件测试一下
详细解决方案
(转载)无联网情况上怎么让MyEclipse 识别 spring-beans-2.5.xsd 文件
热度:813 发布时间:2016-04-23 12:37:31.0
使用myeclipse开发spring,在编写配置文件的时候可能遇到无法使用帮助,来自动添加xml元素的问题,是因为无法查找spring的DTD描述。这里做个记录手工添加DTD的方法?
在location中选择FileSystem然后在spring的解压目录的dist/resources目录中选择spring-bean-2.5.xsd?
?
?
其中key值应该和applicationContext.xml中的
xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.0.xsd">对应上。
转自:http://yulimeander.blog.sohu.com/120164171.html
相关解决方案
- MyEclipse 连接tomcat 出现如上异常
- Spring MVC开发模式,怎么取得新增的id
- spring 表单对象绑定有关问题 String与Long的转换
- spring+quartz定时器有关问题
- spring @Scope("prototype")注解更新有关问题,寻求帮助
- Spring MVC是不是可以完全取代Struts
- spring+quartz的错误,不能正常启动
- Myeclipse 注册码生成器 源码 亲测
- spring mvc +ibatis+db2连接数据库的配置如何写啊小弟我链接不下
- spring MVC cvc-complex-type.2.4.c解决方案
- Spring + Mybatis 组合报错
- Spring 中 packagesToScan有关问题
- org.springframework.beans.factory.BeanCreationException解决思路
- Spring MVC中点击旋钮没反应
- spring aop这个跳转异常是咋回事
- spring security3的一个小疑点。加急
- spring 事务 aop transactionManager,该怎么解决
- Spring 事务管理,该怎么处理
- 关于 Spring 声明式事务管理!解决办法
- Struts2+Spring+JPA+FREEMARKER 登录程序异常
- 关于 Spring 宣言式事务管理!
- MyEclipse 上配置tomcat遇到的有关问题
- 求SSM分页 struts +spring+mybatis 给小弟我发个学习学习吧 多谢大神们
- spring placeholderConfig的有关问题
- spring 事宜 aop transactionManager
- Spring 事务管理,该怎么解决
- struts2 + spring 整合有关问题
- myeclipse 左侧的目录结构变了 如何改回来
- struts+spring+mybatis出现错误(java.lang.ClassNotFoundException: Entity)为提示位置
- 求解 struts+spring+mybatis sqlsession为空 debug发现没有执行set方法 检查配置好像没有关问题