public class StringTest{ public static void main(String[] args){ String str1 = new String("123"); String str2 = new String("123"); //str1和str2指向不同的内存 System.out.println(str1==str2);//false System.out.println(str1.equals(str2));//true S…
一.发现问题 <select id="queryStudentByNum" resultType="student" parameterType="string"> select num,name,phone from student <where> <if test = " num!=null and num!='' "> AND num = #{num} </if> <…