base 中全局的需要用static修饰 ,不然会报空指针异常
java.lang.NullPointerException at com.test.cases.Buy.buy(Buy.java:13) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.Delegating...
复制链接