idea配置echache.xml报错Cannot resolve file 'ehcache.xsd'

来源:互联网 发布:linux while加快循环 编辑:程序博客网 时间:2024/05/17 22:40

报错语句

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd"> 

解决方法:

打开settings-languages&frameworks-schemas and dtds ,添加地址 http://ehcache.org/ehcache.xsd

添加之后 , 将xml的

../config/ehcache.xsd
引用改为

http://ehcache.org/ehcache.xsd

即可


ps:

如果不把该url添加到idea设置中 ,会提示 url未注册 ,按照警告提示的信息也可以一步一步解决 ,关于如何不修改xml中的引用解决此问题 ,本人暂时没有找到方法(菜鸟请见谅) ,又知道的请给个地址或者建议 ,共同进步 ,3Q


0 0