@TedZhou
2024-08-16T09:47:15.000000Z
字数 1864
阅读 67
java
日志
Exception in thread "http-nio-8886-exec-12" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
at 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.logging/java.util.logging.Logger.log(Logger.java:979)
at java.logging/java.util.logging.Logger.doLog(Logger.java:1006)
at java.logging/java.util.logging.Logger.logp(Logger.java:1283)
at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:175)
at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:141)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1740)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
网上有的说是jar包冲突(https://developer.aliyun.com/article/626924),
有的说是jdk版本或os环境问题,
还有说是启动中打包导致的(https://blog.csdn.net/qq_42256196/article/details/127545943),
……
各种分析无果。
最后,我试着重新打包再部署上去就没问题了:(
想在IDEA里直接测试api,
社区版tools里没找到HTTP Client,
于是在插件市场看到RESTful toolkit就想试试。
没想到安装RESTful toolkit插件重启IDEA之后还么开始用就发现:
SpringBoot应用起不来了!
Console输出的错误莫名其妙,
说是application.yml里引用自pom.xml的${spring.profiles.active}找不到。
似乎是Maven没做好编译似的。
关键是把这个插件禁了卸了重启IDEA甚至重启电脑了都仍然报错。
实在没头绪,最后重装IDEA就好了,shit!
sh