Skip to content

fix(thread): 修复SpringContext重启后,三个单例Thread没有重新启动的问题#3182

Open
hashmaparraylist wants to merge 1 commit intoxuxueli:masterfrom
hashmaparraylist:master
Open

fix(thread): 修复SpringContext重启后,三个单例Thread没有重新启动的问题#3182
hashmaparraylist wants to merge 1 commit intoxuxueli:masterfrom
hashmaparraylist:master

Conversation

@hashmaparraylist
Copy link
Copy Markdown

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

The description of the PR:

Spring Context重启时,调用了stop()方法,将标志位toStop设为true了。由于三个Thread都是单例模式,Spring Context重启时,不会重新实例化三个Thread,导致标志位toStop 一直为true。

Other information:

Closes #2874

Spring Context重启时,调用了stop()方法,将标志位toStop设为true了。由于三个Thread都是单例模式,Spring
Context重启时,不会重新实例化三个Thread,导致标志位toStop 一直为true。

Closes xuxueli#2874
@hashmaparraylist hashmaparraylist changed the title fix(thread): 修复SpringContext重启后,三个单例Thread没有冲洗启动的问题 fix(thread): 修复SpringContext重启后,三个单例Thread没有重新启动的问题 Jun 16, 2023
@lostsnow
Copy link
Copy Markdown

lostsnow commented Dec 1, 2023

Also need clear adminBizList when destroy

@lostsnow
Copy link
Copy Markdown

lostsnow commented Dec 1, 2023

related #2232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

通过/actuator/restart重启ApplicationContext后,执行器无法自动注册

2 participants