81,122
社区成员




Map<String, String> map = new HashMap();
map.put("aaa", "aa'aa'aa");
System.out.println(client.queryForList("blog.test", map).size());
<sqlMap namespace="blog">
<select id="test" resultClass="java.util.LinkedHashMap">
select 111 from dual
where #aaa# is not null
</select>
2018-11-20 20:03:40,469 [java.sql.Connection]-[DEBUG] {conn-100000} Connection
2018-11-20 20:03:40,472 [java.sql.Connection]-[DEBUG] {conn-100000} Preparing Statement: select 111 from dual where ? is not null
2018-11-20 20:03:40,621 [java.sql.PreparedStatement]-[DEBUG] {pstm-100001} Executing Statement: select 111 from dual where ? is not null
2018-11-20 20:03:40,621 [java.sql.PreparedStatement]-[DEBUG] {pstm-100001} Parameters: [aa'aa'aa]
2018-11-20 20:03:40,621 [java.sql.PreparedStatement]-[DEBUG] {pstm-100001} Types: [java.lang.String]
1