0
내가 스플리터를 가지고 있고 프로그램의 필요에 따라 파일 이름의 메시지 헤더를 수정하려고합니다.이미 존재하는 메시지의 헤더를 수정할 수 있습니까?
나는 파일 이름이 ABC.tec
내가 그러므로 내가
같은
로 다른 파일 이름에있을 필요, 여러 개의 파일로 분할하고 메시지 채널에 반환 이후
ABC_3.tecABC_2.tec
ABC_1.tec나는
내가 따를 수있는 가이드가 있습니까 .. 내가 값이 여전히 동일한 인쇄 할 때 작동하지 않습니다 그러나StringBuilder stringFileName = new StringBuilder(message.getPayload().getName());
stringFileName = stringFileName.insert(stringFileName.indexOf("."), i++);
MessageBuilder.withPayload(content).copyHeaders()).setHeader("FILE_NAME", stringFileName.toString()).build();
에 의해 변경하려고 노력 해요?