gpt4 book ai didi

spring-boot - spring cloud cli [NoSuchMethodError : org. springframework.cloud.launcher.cli.LauncherCommand] 问题

转载 作者:行者123 更新时间:2023-12-04 03:09:16 24 4
gpt4 key购买 nike

我有spring boot的版本

Spring CLI v2.1.0.RELEASE

并安装了spring cloud的版本

spring install org.springframework.cloud:spring-cloud-cli:2.0.0.RELEASE

它已正确安装,但无法执行任何云 cli 命令,我遇到了以下异常

Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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) Caused by: java.lang.NoSuchMethodError: org.springframework.cloud.launcher.cli.LauncherCommand$LauncherOptionHandler.option(Ljava/util/Collection;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; at org.springframework.cloud.launcher.cli.LauncherCommand$LauncherOptionHandler.options(LauncherCommand.java:89) at org.springframework.boot.cli.command.options.OptionHandler.getParser(OptionHandler.java:68) at org.springframework.boot.cli.command.options.OptionHandler.getHelp(OptionHandler.java:99) at org.springframework.boot.cli.command.OptionParsingCommand.getHelp(OptionParsingCommand.java:44) at org.springframework.boot.cli.command.core.HelpCommand.run(HelpCommand.java:105) at org.springframework.boot.cli.command.CommandRunner.run(CommandRunner.java:219) at org.springframework.boot.cli.command.CommandRunner.runAndHandleErrors(CommandRunner.java:171) at org.springframework.boot.cli.SpringCli.main(SpringCli.java:63) ... 8 more

谁能帮我找出要使用的正确/工作版本。

最佳答案

我遇到了同样的问题。查了2天,发现是版本问题。请使用spring-boot-cli-1.5.13.BUILD-20180509.054058-23-bin,问题将得到解决。

关于spring-boot - spring cloud cli [NoSuchMethodError : org. springframework.cloud.launcher.cli.LauncherCommand] 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53410910/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com