1. Could not set parameters for mapping
like语句出错,因将%%写入到mapper.xml中导致,将%%随同参数一并传入。
例:String userName=%王%; select * from user where user_name like #{userName}
1. Could not set parameters for mapping
like语句出错,因将%%写入到mapper.xml中导致,将%%随同参数一并传入。
例:String userName=%王%; select * from user where user_name like #{userName}
转载于:https://www.cnblogs.com/DennyZhao/p/9635638.html