Uses BindHandler if registered in bootstrap. (#1773)
* Uses BindHandler if registered in bootstrap.
This allows spring-cloud-context to register a TextEncryptorBindHandler and handle `{cipher}` prefixed properties prior to sending for remote data.
* Adds test that a BindHandler in bootstrap context is used.
* Makes KeyProperties a bean that is conditional on missing.
This commit is contained in:
@@ -40,8 +40,7 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = Application.class,
|
||||
// Normally spring.cloud.config.enabled:true is the default but since we have the
|
||||
// config
|
||||
// server on the classpath we need to set it explicitly
|
||||
// config server on the classpath we need to set it explicitly
|
||||
properties = { "spring.cloud.config.enabled:true",
|
||||
// FIXME: configdata why is this needed here?
|
||||
"spring.config.use-legacy-processing=true", "management.security.enabled=false",
|
||||
|
||||
Reference in New Issue
Block a user