diff --git a/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java b/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java index 0db9dbda..a48ba49c 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/jline/DefaultShellApplicationRunner.java @@ -29,6 +29,7 @@ import org.jline.utils.AttributedString; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; +import org.springframework.core.annotation.Order; import org.springframework.shell.ExitRequest; import org.springframework.shell.Input; import org.springframework.shell.InputProvider; @@ -45,8 +46,11 @@ import org.springframework.shell.Shell; * * @author Eric Bottard */ +@Order(DefaultShellApplicationRunner.PRECEDENCE) public class DefaultShellApplicationRunner implements ApplicationRunner { + public static final int PRECEDENCE = 0; + private final LineReader lineReader; private final PromptProvider promptProvider;