matchIfMissing property
Whether to match even if the property is not set.
Defaults to false
. Set to true
to match when the property is missing.
Example:
@ConditionalOnProperty(
prefix: 'server',
names: ['ssl.enabled', 'ssl.enabled2'],
havingValue: 'true',
matchIfMissing: true,
)
class SslServerConfig {}
Implementation
final bool matchIfMissing;