Add core-beans: bean scopes, the prototype-in-singleton trap, lifecycle callback order and graceful shutdown phases on Boot 4.1
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JoVmf2fWvcpoXndcDSwRf7
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Two threads call the same singleton; a latch forces the interleaving
|
||||
|
||||
UnsafeGreeter (state in a field) : alice's call returned "Hello, bob"
|
||||
SafeGreeter (state in a local) : alice's call returned "Hello, alice"
|
||||
Reference in New Issue
Block a user