Код: Выделить всё
@ShellMethod(key = "test-locale")
public String testLocale() {
logger.info("Terminal is not null. Charset: " + terminal.encoding().displayName());
ComponentFlow flow = componentFlowBuilder.clone()
.withStringInput("testString").and().build();
ComponentFlowResult result = flow.run();
return "testString = " + result.getContext().get("testString");
}
Подробнее здесь: https://stackoverflow.com/questions/788 ... and-locale