In SSM frame, @ Param main parameters used in the annotation process dao class, dao.xml ease of reference in the corresponding file, such as: have such a function userDAO class:
User selectByNameAndPwd(@Param("userName") String name,@Param("Password") String );
Query in the corresponding dao.xml file was:
SELECT username
,password
FROM user
WHERE username=${userName} and password=${Password}
Link: https: //www.jianshu.com/p/9a75b44ef351
Source: Jane books