共计 261 个字符,预计需要花费 1 分钟才能阅读完成。
// Mapper 文件
public interface XxxMapper {
@Select("${sqlStr}")
List<Map<String, Object>> dynamicSql(@Param("sqlStr") String sql);
}
@Autowired
XxxMapper xxxMapper;
@Test
public void DynamicSql()
{
String sql="select * from myTest";
List<Map<String, Object>> list = xxxMapper.dynamicSql(sql);
}
正文完