在log4j.properties 裏面添加以下的語句 java
#log4j.logger.org.apache.ibatis=debug,stdout sql
#log4j.logger.java.sql=debug,stdout apache
<select id="findCategoryByCN" parameterType="String" resultType="Map"> mybatis
select * spa
from t_business_classificationmeta where 1=1 debug
<if test="#{1} != null and #{1} != ''"> and TITLE = #{1}</if> 日誌
<if test="#{0} != null and #{0} != ''"> and CLASSIFICATIONCODE=#{0} </if> blog
</select> io
不是直接使用名稱進行代替。class