Initialization Sequence datacenterId:16 workerId:10

Initialization Sequence datacenterId:16 workerId:10

1、问题

项目启动之后,就停了,报错如下:
Initialization Sequence datacenterId:16 workerId:17
The web application [my-web] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

在这里插入图片描述

Initialization Sequence datacenterId:16 workerId:10
807, 2024 9:20:40 上午 org.apache.tomcat.util.descriptor.web.SecurityConstraint findUncoveredHttpMethods
严重: For security constraints with URL pattern [/*] only the HTTP methods [TRACE HEAD DELETE SEARCH PROPFIND COPY OPTIONS PUT] are covered. All other methods are uncovered.
8月 07, 2024 9:20:40 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service [Tomcat]
8月 07, 2024 9:20:40 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [caf-shjb-web] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@17.0.12/sun.net.dns.ResolverConfigurationImpl.notifyAddrChange0(Native Method)
 java.base@17.0.12/sun.net.dns.ResolverConfigurationImpl$AddressChangeListener.run(ResolverConfigurationImpl.java:176)
8月 07, 2024 9:20:40 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [caf-shjb-web] appears to have started a thread named [lettuce-timer-3-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@17.0.12/java.lang.Thread.sleep(Native Method)
 app//io.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:600)
 app//io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:496)
 app//io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 java.base@17.0.12/java.lang.Thread.run(Thread.java:842)
Disconnected from the target VM, address: '127.0.0.1:58421', transport: 'socket'

Process finished with exit code 1

2、排查问题

参考资料:
https://zhuanlan.zhihu.com/p/583013219
分析为 没有增加@RequestParam注解,也没有设置required属性导致。
同理修改,并未能解决。
后发现启动类未增加注释。


3、解决

启动类增加 @EnableAutoConfiguration

问题解决。


OK,就这些吧。
有什么不对的还望指正,书写不易,觉得有帮助就点个赞吧!☺☺☺

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

message丶小和尚

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值