how to avoid #{...} replaced in custom maven archetype? -
here mybatis mapper.xml in custom maven archetype :
... <sql id="selectsql"> <where> <if test="id != null"> id = #{id} </if> <if test="parentid != null"> , parent_id = #{parentid} </if> ...
mybatis symbol #{..} not maven archetype symbol ${...} , problem mapper.xml goes wrong in replacing #{...} #..., lose {} after new maven project custom archetype :
<sql id="selectsql"> <where> <if test="id != null"> id = #id </if> <if test="parentid != null"> , parent_id = #parentid </if>
i named 2 propertyies key follow , having nothing mybatis mapper xml :
<requiredproperties> <requiredproperty key="projectname"> <defaultvalue>hntest</defaultvalue> </requiredproperty> <requiredproperty key="constantclassname"> <defaultvalue>hntestconstant</defaultvalue> </requiredproperty> </requiredproperties>
why maven archetype fileter {...} , how avoid problem?
Comments
Post a Comment