INT-4284: Integration Properties @Bean => static

JIRA: https://jira.spring.io/browse/INT-4284

Prevent early instantiation of config.
This commit is contained in:
Gary Russell
2017-06-05 14:49:37 -04:00
parent 33e9ce912f
commit cb444d8f5d

View File

@@ -543,7 +543,7 @@ public class GatewayInterfaceTests {
public static class TestConfig {
@Bean(name = IntegrationContextUtils.INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME)
public Properties integrationProperties() {
public static Properties integrationProperties() {
Properties properties = new Properties();
properties.setProperty(IntegrationProperties.READ_ONLY_HEADERS, IGNORE_HEADER);
return properties;