public class MyClass { public void foo() { System.out.println("Hello, Detective Core!"); } public void bar() { foo(); } public static void main(String[] args) { MyClass obj = new MyClass(); obj.bar(); } } java.lang.NullPointerException at MyClass.bar(MyClass.java:8) at MyClass.main(MyClass.java:14) DetectiveCore.monitorPoint("someKey"); DetectiveCore.inspect(someParameter); DetectiveCore.inspect(someVariable); <dependency> <groupId>com.example</groupId> <artifactId>detective-core</artifactId> <version>1.0.0</version> </dependency>


上一篇:
下一篇:
切换中文