InterruptedIOException using Spring-Shell TerminalUI Framework
Using JDK 17, Spring-Boot 3.3.0 and Spring-Shell 3.3.0 I’m experiencing ajava.io.IOError: java.io.InterruptedIOException: Command interrupted
exception when the UI application is legitimately terminated by the user. It appears to be triggered when eventLoop.dispatch(ShellMessageBuilder.ofInterrupt())
is called.
How do I create shell components using the 3.x annotations vs legacy annotations?
I am looking at the documentation where I see to make a string component I need to give the component the terminal at instantiation, then set the resource loader and template executor. Using the provided documentation as a template works just fine, for now, but this appears to be using legacy annotation, which means it is not future-proofed.