1.今天打包时候编译没有问题,运行时候出错了,报出这样的异常,百度了一下,最后定位到了错误
You are getting a java.lang.NoClassDefFoundError which does NOT mean that your class is missing (in that case you'd get a java.lang.ClassNotFoundException). The ClassLoader ran into an error while reading the class definition when trying to read the class.Put a try/catch inside your static initializer and look at the exception. If you read some files there and it differs from your local environment it's very likely the cause of the problem (maybe file can't be found, no permissions etc.).
说白了,就是类初始化文件或参数时候出现了问题,或许因为环境差异也可能因为配置文件问题。
2.对应的代码
去对应文件读参数,然后发现配置文件里面参数名称和拿的名称不一致,所以报的这个错。没啥大问题。