Код: Выделить всё
return Flux.concat(SmsTemplate.transferTo(SmsTemplateFile),lSMSVariables.transferTo(SMSVariablesFile))
.then(importService.previewSmsTemplateImport(clientId,
spaceKey,
new FileSystemResource(SmsTemplateFile),
new FileSystemResource(SMSVariablesFile)))
.map(mapper::map)
.doFinally($ -> FileUtils.deleteQuietly(SmsTemplateFile.toFile()))
.doFinally($ -> FileUtils.deleteQuietly(SMSVariablesFile.toFile()));
Код: Выделить всё
SmsTemplate.transferTo(SmsTemplateFile),SMSVariables.transferTo(SMSVariablesFile)
Код: Выделить всё
org.dom4j.DocumentException: Error on line 1 of document : parsing initialization error: org.gjt.xpp.XmlPullParserException: only whitespace content allowed outside root element at line 1 and column 1
Код: Выделить всё
SmsTemplate.transferTo(SmsTemplateFile).subscribe();
SMSVariables.transferTo(SMSVariablesFile).subscribe();
Подробнее здесь: https://stackoverflow.com/questions/785 ... e-to-3-2-3
Мобильная версия