RestClientBuilder错误java.lang.NoClassDefFoundError:feign / codec / Decoder

时间:2019-06-24 21:06:00

标签: java java-ee jax-rs java-websocket

这是一个Maven项目,我使用JaxRs。我整天都在为这个错误而苦苦挣扎。我正在使用主要方法快速测试,这是怎么回事?

public static void main(String[] args) {
  DemoResponse demo = new RestClientBuilder < DemoResponse > ()
    .setTarget(DemoResponse .class, "<some_url>")
    .build();
}

错误消息即时消息

Exception in thread "main"
java.lang.NoClassDefFoundError: feign / codec / Decoder
at za.co.nedj.app.azp.transactionsignature.service.ConsumerService.main(ConsumerService.java: 28)
Caused by: java.lang.ClassNotFoundException: feign.codec.Decoder
at java.net.URLClassLoader.findClass(URLClassLoader.java: 381)
at java.lang.ClassLoader.loadClass(ClassLoader.java: 424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 335)
at java.lang.ClassLoader.loadClass(ClassLoader.java: 357)
  ...1 more

0 个答案:

没有答案