错误原因,:在mybatis3.4.4版不能直接使用#{0}要使用#{arg0},
old:
SELECT count(id) FROM `hotel` where count=#{0} and pwd=#{1};
改为
new:
SELECT count(id) FROM `hotel` where count=#{arg0} and pwd=#{arg1};
错误原因,:在mybatis3.4.4版不能直接使用#{0}要使用#{arg0},
old:
SELECT count(id) FROM `hotel` where count=#{0} and pwd=#{1};
改为
new:
SELECT count(id) FROM `hotel` where count=#{arg0} and pwd=#{arg1};