java.lang.NoClassDefFoundError: com/google/common/base/Preconditions?
sh_man 提问于:2017-07-24
0 0

console:

Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 6 more
  • 所有回答
bluesky 回答于:2017-07-24
0 0

缺少jar依赖

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>16.0.1</version>
</dependency>

https://mvnrepository.com/artifact/com.google.guava/guava/16.0.1

我来回答    java.lang.NoClassDefFoundError: com/google/common/base/Preconditions?