@Test
public void t3() {
Dao dao = new NutDao(dataSource);
Sql sql = Sqls.create("select * from sunyu_resource t where t.id = @id");
sql.params().set("id", "21326916-33a1-4d10-a29c-d156a1bc7b76");
sql.setCallback(Sqls.callback.record());
Sql s = dao.execute(sql);
System.out.println(s.getResult());
}
我想在控制台和log4j日志中,记录这个sql和传递的参数
select * from sunyu_resource t where t.id = ?
id : 21326916-33a1-4d10-a29c-d156a1bc7b76