重载的方法,jvm首先会通过精确匹配参数来查找方法,其次才考虑变参的模糊匹配
楼主的情况中,如果没有上面得 public static int add(int a){  return 1; }
请求会走下面的变参add方法