Mybatis queries handle input errors. the mysql database is used for processing, and mybatis is used for management. The java background is the spring framework, and the www.2cto.com console displays: 1 There is no getter for property named 'xxxx' in 'class java. lang. integer error. I checked it and thought there was an error in the parameter type of the SQL statement in xml. Later I changed it. No, I 'd like to change it online: <select id = "selectAllUserByName" resultType = "User" parameterType = "String"> SELECT id, name, login_name as loginName FROM sb_user where name like '% $ {_ parameter} %' </select> I changed the original name parameter to _ parameter. The method is to change the value of www.2cto.com from List <User> selectAllUserByName (String name) to List <User> selectAllUserByName (@ Param ("name") in the interface defined by mapper ") string name); can also solve the problem.