The getProperty method returns an instance of the class Object, so you must cast the result into the appropriate type, which, in this case, is a string.
getProperty 方法返回 Object类的一个实例,因此您必须把结果转换成合适的类型,在本例中是 string 型。
GetException : This method returns an exception which allows you to nest exceptions for later retrieval. You can stuff your own custom exception in here and pass on information to calling programs.
getException:该方法返回一个Exception,允许在其中嵌套用于后期恢复的异常,可以将自定义的异常填充在这里,为调用程序传递信息。
This method returns a Response object, from which you can retrieve a Document.
这个方法会返回一个Response对象,我们可以从中检索Document。
应用推荐