原因是jar包在运行过程中因为要调试被我mvn package重新编译了,程序依赖的包变化导致运行时错误。
-07-18 17:01:59.913 DEBUG 21687 --- [0.0-7070-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public java.lang.String com.tal.openapi_hive.controller.HiveControllerV1.spacedb(java.lang.String)-07-18 17:01:59.917 DEBUG 21687 --- [0.0-7070-exec-4] o.s.web.servlet.DispatcherServlet : Failed to complete request: org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/web/servlet/ModelAndViewDefiningExceptionException in thread "http-nio-0.0.0.0-7070-exec-4" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxyat ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:119)at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:419)at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:383)at ch.qos.logback.classic.Logger.log(Logger.java:765)at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:221)at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:303)at java.util.logging.Logger.log(Logger.java:738)at java.util.logging.Logger.doLog(Logger.java:765)at java.util.logging.Logger.logp(Logger.java:1042)at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:175)at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:141)at org.apache..NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1604)at org.apache..SocketProcessorBase.run(SocketProcessorBase.java:49)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)at java.lang.Thread.run(Thread.java:748)