public void getClass(Object mobileOrAccount){
System.out.println(mobileOrAccount.getClass().getName());
System.out.println(mobileOrAccount instanceof Integer);
前端传递过来的参数使用Object接收如何判断参数类型
使用postman发送请求
为什么会变成String不是Integer
public void getClass(Object mobileOrAccount){
System.out.println(mobileOrAccount.getClass().getName());
System.out.println(mobileOrAccount instanceof Integer);
前端传递过来的参数使用Object接收如何判断参数类型
使用postman发送请求
为什么会变成String不是Integer
你不知道传过来的参数类型 与结构? 只能用instanceof验证了