Я смотрю, возможно ли динамическое конфигурирование для различных сред -
- КЛЮЧ API
- URL шлюза
<int:chain input-channel="reportInChannel"
output-channel="headerFilterChannel">
<int:header-enricher>
<int:header name="Api-Key" value="B82853E8B"></int:header>
</int:header-enricher>
<int-http:outbound-gateway
url="https://shh.str1.tst.bl/ia-zadmin/rest/sign/v2/{signalId}"
http-method="GET"
header-mapper="headerMapper"
expected-response-type="java.lang.String"
encode-uri="false" request-factory="sslFactory">
<int-http:uri-variable name="signalId" expression="payload" />
</int-http:outbound-gateway>
<int:object-to-string-transformer></int:object-to-string-transformer>
</int:chain>
Редактировать 1:
@SpringBootApplication
@EnableIntegration
@PropertySource("classpath:/application.properties")
@ImportResource({"classpath:/common.xml","classpath:/so-on-config.xml"})
@EnableJms
@EnableSwagger2c
public class SpringIntegrationMQApplication {
private QueueConnectionFactory jmsConFactory;
public static void main(String[] args) {
ConfigurableApplicationContext context = SpringApplication.run(SpringIntegrationMQApplication.class, args);
}
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build();
}
@Bean
public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}
}
Заполнители в моей конфигурации xml не подставляются.Также я хотел бы иметь возможность использовать профили [application-test.properties] и т. Д. Спасибо