java.lang.NoSuchMethodError: 'void sun.misc.Unsafe.monitorEnter(java.lang.Object)' 是JDK版本不匹配导致 通过IDEA打开项目 在File->Project Structure -> Project scttings -> Project -> Project SDK 可以看到是11,将其修改为JDK8即可。