java.lang.StringIndexOutOfBoundsException: String index out

ibatis  使用selectByIds,通过一个装有id的list参数  返回一个javabean的list结果,然后报错,原因ibatis 使用map封装参数,并且配置里面的property也是按照map取值,直接传递list参数就不能使用property  ,改进,把List<id> 放进map传值查询

猜你喜欢

转载自vitoer.iteye.com/blog/2320180
今日推荐