Add core-di: constructor vs setter vs field injection and @Autowired candidate resolution 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,5 @@
|
||||
# The parameter-name fallback needs javac -parameters (compiled twice from the same source)
|
||||
|
||||
javac -parameters : started, picked PaypalGateway
|
||||
javac (no flag) : FAILED NoUniqueBeanDefinitionException
|
||||
No qualifying bean of type 'com.ankurm.coredi.injection.PaymentGateway' available: expected single matching bean but found 2: stripeGateway,paypalGateway
|
||||
Reference in New Issue
Block a user