Fight With Me!!!

导航

配置DTD提示的方法

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap
 PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN"
 "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap namespace="Person">
 <!-- Use primitive wrapper type (e.g. Integer) as parameter and allow results to
 be auto-mapped results to Person object (Java Bean) properties -->
  
 <select id="getPerson" parameterClass="int" resultClass="com.beatis.Person">
  SELECT PER_ID as id,
  PER_FIRST_NAME as firstName,
  PER_LAST_NAME as lastName,
  PER_WEIGHT_KG as weightInKilograms,
  PER_HEIGHT_M as heightInMeters
  FROM PERSON
  WHERE PER_ID = #id#
   
 </select>
 </sqlMap>

如上图,想要配置dtd的本地文字提示,我们进行如下的操作:

  1. 首先下载dtd文件

  2. 然后window--->prefereces----->xml  catalog

  3. 点击 add  按钮,选择相应的文件路径,key  type选择URI

posted on 2016-06-11 14:11  nickTimer  阅读(387)  评论(0编辑  收藏  举报