批注接口 ServiceConnection
ContainerConnectionSource which provides a service that can be connected to.- 从以下版本开始:
- 3.1.0
- 作者:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
可选元素概要
可选元素修饰符和类型可选元素说明The name of the service being connected to.Class<? extends ConnectionDetails>[]A restriction to types ofConnectionDetailsthat can be created from this connection.The name of the service being connected to.
-
元素详细资料
-
value
The name of the service being connected to. Container names are used to determine the connection details that should be created when a technology-specificContainersubclass is not available.If not specified, and if the
Containerinstance is available, therepositorypart of thedocker image namewill be used. Note thatContainerinstances are not available early enough when the container is defined as a@Beanmethod. All@ServiceConnection@Beanmethods that need to match on the connection name must declare this attribute.This attribute is an alias for
name().- 返回:
- the name of the service
- 另请参阅:
- 默认值:
""
-
name
The name of the service being connected to. Container names are used to determine the connection details that should be created when a technology-specificContainersubclass is not available.If not specified, and if the
Containerinstance is available, therepositorypart of thedocker image namewill be used. Note thatContainerinstances are not available early enough when the container is defined as a@Beanmethod. All@ServiceConnection@Beanmethods that need to match on the connection name must declare this attribute.This attribute is an alias for
value().- 返回:
- the name of the service
- 另请参阅:
- 默认值:
""
-
type
Class<? extends ConnectionDetails>[] typeA restriction to types ofConnectionDetailsthat can be created from this connection. The default value does not restrict the types that can be created.- 返回:
- the connection detail types that can be created to establish the connection
- 默认值:
{}
-