接口的使用
org.springframework.boot.origin.Origin
使用Origin的程序包
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
Support for
@ConfigurationProperties
binding.Sources for external configuration properties.
Core interfaces and classes for working with Docker Compose.
Service connection support for Docker Compose.
Spring
Environment
support.Support for item origin tracking.
General support for service connections in tests.
-
org.springframework.boot.context.config中Origin的使用
-
org.springframework.boot.context.properties.bind中Origin的使用
-
org.springframework.boot.context.properties.source中Origin的使用
-
org.springframework.boot.docker.compose.core中Origin的使用
修饰符和类型类说明final record
An origin which points to a service defined in Docker Compose. -
org.springframework.boot.docker.compose.service.connection中Origin的使用
-
org.springframework.boot.env中Origin的使用
-
org.springframework.boot.origin中Origin的使用
修饰符和类型类说明class
Origin
from aPropertySource
.class
Origin
for an item loaded from the system environment.class
Origin
for an item loaded from a text resource.修饰符和类型方法说明static Origin
Find theOrigin
that an object originated from.static Origin
PropertySourceOrigin.get
(PropertySource<?> propertySource, String name) static <K> Origin
Attempt to look up the origin from the given source.Return the origin of the given key ornull
if the origin cannot be determined.OriginProvider.getOrigin()
Return the source origin ornull
if the origin is not known.OriginTrackedResource.getOrigin()
OriginTrackedValue.getOrigin()
PropertySourceOrigin.getOrigin()
Return the actual origin for the source if known.default Origin
Origin.getParent()
Return the parent origin for this instance if there is one.PropertySourceOrigin.getParent()
TextResourceOrigin.getParent()
返回变量类型为Origin的类型的org.springframework.boot.origin中的方法修饰符和类型方法说明Origin.parentsFrom
(Object source) Find the parents of theOrigin
that an object originated from.参数类型为Origin的org.springframework.boot.origin中的方法修饰符和类型方法说明static OriginTrackedResource
Return a neworigin tracked
version the givenResource
.OriginTrackedResource.of
(WritableResource resource, Origin origin) Return a neworigin tracked
version the givenWritableResource
.static OriginTrackedValue
参数类型为Origin的org.springframework.boot.origin中的构造器限定符构造器说明PropertySourceOrigin
(PropertySource<?> propertySource, String propertyName, Origin origin) Create a newPropertySourceOrigin
instance. -
org.springframework.boot.testcontainers.service.connection中Origin的使用