类 ResourceNotFoundException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.context.config.ResourceNotFoundException
- 所有已实现的接口:
Serializable
public class ResourceNotFoundException extends RuntimeException
Exception thrown when aResource
defined by a property is not found.- 从以下版本开始:
- 1.5.0
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ResourceNotFoundException(String propertyName, org.springframework.core.io.Resource resource)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getPropertyName()
Return the name of the property that defines the resource.org.springframework.core.io.Resource
getResource()
Return theResource
.
构造器详细资料
ResourceNotFoundException
public ResourceNotFoundException(String propertyName, org.springframework.core.io.Resource resource)
方法详细资料
getPropertyName
public String getPropertyName()
Return the name of the property that defines the resource.- 返回:
- the property
getResource
public org.springframework.core.io.Resource getResource()
Return theResource
.- 返回:
- the resource