说明:
@H_403_2@xsi:schemaLocation="http://www.nl.org/mapper"
@H_403_2@ @H_403_2@引入xsd文件
xmlns="http://www.nl.org/mapper"
默认命名空间
@H_403_2@
mapper.xml
@H_403_2@
<?xml version="1.0" encoding="UTF-8"?> <mapper namespace="UserDemo" xmlns="http://www.nl.org/mapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nl.org/mapper" > <select id="query"> select * from user u <if property="name" notNull=""/> </select> <select id=""></select> <insert id="insert"> insert into user(id) values(#id) <if property="name" notNull=""></if> </insert> </mapper>