@Param comment

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

Released five original articles · won praise 1 · views 96

Guess you like

Origin blog.csdn.net/qq_43465706/article/details/104611772