org.springframework.shell.CommandNotFound:找不到用于“添加1 2”的命令

时间:2019-05-02 11:24:27

标签: spring-boot spring-shell

org.springframework.shell.CommandNotFound:未找到“添加1 2”的命令

我按照官方的弹簧壳弹簧指南的说明进行操作,但由于第一个示例已经失败了。应用程序启动时没有问题,但是当我要执行添加命令时,会发生以下异常:

        at org.springframework.shell.Shell.evaluate(Shell.java:200)
        at org.springframework.shell.Shell.run(Shell.java:142)
        at org.springframework.shell.jline.InteractiveShellApplicationRunner.run(InteractiveShellApplicationRunner.java:84)
        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804)
        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
        at com.example.demoshell.DemoShellApplication.main(DemoShellApplication.java:10)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)```


I expected the output 3

0 个答案:

没有答案