编写代码主要是UserDaoImpl里面的动态sql要写好,,而且要转为StringBuild 的toString形式,而且param要转为数组才能被queryForObject获取。 附上代码: https://github.com/QLBF11/Java_small_important/commit/2d59a3ff3d999e1693c034411a89c417973bd0ea#diff-c4ea928571e8da501978c22e459ad719405935b408e11b099f3a1d227d23999f