同花顺
遇到各种各样的奇奇怪怪的奇葩BUG,怎么解决。
一针见血
最简单的方法:
换浏览器。
卸载安装。
关机重启。
重装系统。
换笔记本。
这么做的目的为:
保证干净的运行环境,排除环境因素干扰。
疑难杂症
1、这个错误就很好解决,日志很明显,配置文件中使用了未定义的前缀名。
Caused by: org.springframework.boot.context.properties.bind.UnboundConfigurationPropertiesException: The elements [cas.client,cas.server] were left unbound.
at org.springframework.boot.context.properties.bind.handler.NoUnboundElementsBindHandler.checkNoUnboundElements(NoUnboundElementsBindHandler.java:83)
at org.springframework.boot.context.properties.bind.handler.NoUnboundElementsBindHandler.onFinish(NoUnboundElementsBindHandler.java:71)
at org.springframework.boot.context.properties.bind.Binder.handleBindResult(Binder.java:228)
at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:215)
... 79 common frames omitted
2、这个报错就懵逼了。
警告: The web application [ROOT] appears to have started a thread named [token%0043ache.data] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
十二月 24, 2020 10:30:07 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
3、这个也看不懂。我仅仅在tomcat中加入了CORS的配置信息就这样了。
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
答案就在你眼前
碰到的奇怪的问题,怎么解决。
问题永远存在于日志中。
就算日志看不懂,也要看。
每一个报错都看一遍,不放过每一条报错,总有能看懂的。
你所认为最不可能的报错,就是你苦苦寻找的答案。
毫无逻辑的报错,新建一个文件夹,启动后还是空白的,就这样就可以解决jar包错误。
百度到的答案大部分是对的,但有些错误会耽误你极大的时间,没办法。
思路是最重要的,遇到无厘头的报错,慢慢使用排除法。
你看我几分像从前
心态很重要。
说到心态,我想起来了主播。
有一个主播这样说:
你们都觉得主播很挣钱,但凡是在任何一个行业里,能够做到前十,前一百,所能挣的钱都不是主播可以比拟的。
你们想想他们能在一个主播行业里做到了前十前一百,每个月才挣多少,才几十万。
这么一想的话,大主播们是不是挣的也不算多啊,毕竟他们已经是主播界的顶尖了。
································································································
解决Bug不要熬夜,Bug是解决不完的,永远有一堆Bug让你解决。
夜不会被你熬死,你会被夜熬死。
肾有两个,坏了一个,还有一个,还不错。
头发多得很,前边秃了,还有后边,也不错。