spring boot mapper层传参数是用main的arg0(第一个参数),arg1(第二个参数)
spring boot mapper层传参数是用main的arg0(第一个参数),arg1(第二个参数)
大于三个参数,用map传递
public interface FrontMapper{
//==============
//spring boot mapper 传参
@Select("select count(1) as num from users where username=#{arg0} and password=#{arg1}")
int isUserExist(String username,String password);
}