Warning: file_put_contents(/datas/wwwroot/jiajiahui/core/caches/caches_template/2/default/show.php): failed to open stream: Permission denied in /datas/wwwroot/jiajiahui/core/libraries/classes/template_cache.class.php on line 55

Warning: chmod(): Operation not permitted in /datas/wwwroot/jiajiahui/core/libraries/classes/template_cache.class.php on line 56
MyEclipse10中添加xml的智能提示 - 源码之家

MyEclipse10中添加xml的智能提示

首先你得下载相应的.dtd文件。一般情况下,下载的jar中都有,所以不需要额外再去下载。
比如:mybatis,但你下载了mybatis-3.2.7.jar后,这里面就有dtd文件,你可以先进行解压
然后再去搜索.dtd文件即可找到。这里给出mybatis的jar中dtd文件的路径:
解压后目录\org\apache\ibatis\builder\xml,在最后的xml文件夹中就有两个dtd文件。
mybatis-3-mapper.dtd和mybatis-3-config.dtd。
你要是想在sqlMapConfig.xml中有智能提示需要进行以下操作:
eclipse中window->preferences->xml catalog->add
MyEclipse10中添加xml的智能提示
public ID,则key:-//mybatis.org//DTD Config 3.0//EN
MyEclipse10中添加xml的智能提示
如果你选用URI,则key:http://mybatis.org/dtd/mybatis-3-config.dtd 
MyEclipse10中添加xml的智能提示
至此。配置完毕。怎么用呢?如下:

       第一种用法:

new->other...
  MyEclipse10中添加xml的智能提示
接着点击next,不要点finish。直到出现如下页面
MyEclipse10中添加xml的智能提示
MyEclipse10中添加xml的智能提示
选择好后,就点击next,再点击finish。至此结束!新建的这个xml已经具有智能提示了