1.最近总结了 shell 中 function 的传递变量的几种方式 1.传递单个变量 2.传递数组变量 #!/bin/bash #trying to pass an variable. function func() { echo "The number of parameters is: ${#}" for line in "$@" do echo "$line" done } function func2() { pa…
第一种: Dao层的方法 public User selectUser(String name,String password); 对应的Mapper.xml <select id="selectUser" resultMap="BaseResultMap"> select * from t_user where user_name = #{0} and user_password=#{1} </select> 第二种: 该方法采用Map传多…