reports-service добавил настройку ReportModuleOut
This commit is contained in:
parent
eed33ce35b
commit
e18d8c9664
2 changed files with 15 additions and 20 deletions
|
|
@ -3,18 +3,19 @@ package ru.spcex.clearing.reports.config.element;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
//import ru.spcex.clearing.platform.messaging.config.element.KafkaConsumerSettings;
|
|
||||||
//import ru.spcex.clearing.platform.messaging.config.element.KafkaProducerSettings;
|
|
||||||
import ru.spcex.platform.imdg.iml.hazelcast.config.HazelcastClientParams;
|
import ru.spcex.platform.imdg.iml.hazelcast.config.HazelcastClientParams;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Параметр запуска: XMLReportBuilder
|
||||||
|
* --spring.config.location=E:/MFD_GIT_REPO/clearing/clearing-parent/reports-service/src/main/resources
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Component
|
@Component
|
||||||
@PropertySource("file:${spring.config.location}/application.properties")
|
@PropertySource("file:${spring.config.location}/application.properties")
|
||||||
//todo for test @PropertySource("classpath:application.properties")
|
|
||||||
@ConfigurationProperties("reports-service")
|
@ConfigurationProperties("reports-service")
|
||||||
public class ReportsServiceSettings {
|
public class ReportsServiceSettings {
|
||||||
private HazelcastClientParams hazelcast;
|
private HazelcastClientParams hazelcast;
|
||||||
// private KafkaConsumerSettings kafkaConsumer;
|
private String reportModuleOut;
|
||||||
// private KafkaProducerSettings kafkaProducer;
|
|
||||||
|
|
||||||
public HazelcastClientParams getHazelcast() {
|
public HazelcastClientParams getHazelcast() {
|
||||||
return hazelcast;
|
return hazelcast;
|
||||||
|
|
@ -24,19 +25,12 @@ public class ReportsServiceSettings {
|
||||||
this.hazelcast = hazelcast;
|
this.hazelcast = hazelcast;
|
||||||
}
|
}
|
||||||
|
|
||||||
// public KafkaConsumerSettings getKafkaConsumer() {
|
|
||||||
// return kafkaConsumer;
|
public String getReportModuleOut() {
|
||||||
// }
|
return reportModuleOut;
|
||||||
//
|
}
|
||||||
// public void setKafkaConsumer(KafkaConsumerSettings kafkaConsumer) {
|
|
||||||
// this.kafkaConsumer = kafkaConsumer;
|
public void setReportModuleOut(String reportModuleOut) {
|
||||||
// }
|
this.reportModuleOut = reportModuleOut;
|
||||||
//
|
}
|
||||||
// public KafkaProducerSettings getKafkaProducer() {
|
|
||||||
// return kafkaProducer;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setKafkaProducer(KafkaProducerSettings kafkaProducer) {
|
|
||||||
// this.kafkaProducer = kafkaProducer;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,4 @@ spring.main.web-application-type=servlet
|
||||||
reports-service.hazelcast.cluster-members=127.0.0.1:5701
|
reports-service.hazelcast.cluster-members=127.0.0.1:5701
|
||||||
reports-service.hazelcast.login=dev
|
reports-service.hazelcast.login=dev
|
||||||
reports-service.hazelcast.password=dev-pass
|
reports-service.hazelcast.password=dev-pass
|
||||||
|
reports-service.ReportModuleOut=./report_out
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue