Java Spring CLI从命令中吞下字符?

Java Spring CLI从命令中吞下字符?,java,intellij-idea,spring-boot,io,Java,Intellij Idea,Spring Boot,Io,在启动Java CLI应用程序后,有时我会从spring CLI获得以下行为: Welcome to Spring Shell. For assistance press or type "hint" then hit ENTER. 11:04:38.871 [Spring Shell] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'defaultPromptPr

在启动Java CLI应用程序后,有时我会从spring CLI获得以下行为:

Welcome to Spring Shell. For assistance press or type "hint" then hit ENTER.
11:04:38.871 [Spring Shell] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'defaultPromptProvider'
spring> abort
Command 'aort' not found (for assistance press TAB)
spring> 11:04:41.322 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'defaultPromptProvider'
// I hit an enter here
spring> 
Command 'b' not found (for assistance press TAB)
11:06:13.106 [Spring Shell] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'defaultPromptProvider'
因此,它会在缓冲区中随机保留CLI中的一些字符。这只会在我使用IDEA时发生,当我使用打包的罐子时,它会按预期工作。我已将以下选项添加到VM中:

-Djline.terminal=org.springframework.shell.core.IdeTerminal