ENV Spring=6.2.11 Java=21.0.11
10月 02, 2026 3:34:00 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'chapter05.NeedsChannel': Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'blog.spring.Chapter05$Channel' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
CHECK PASS 05 zero candidates fails constructor injection -> UnsatisfiedDependencyException
CHECK PASS 05 zero failure root is missing candidate
CHECK PASS 05 one candidate injected
10月 02, 2026 3:34:00 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'chapter05.NeedsChannel': Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'blog.spring.Chapter05$Channel' available: expected single matching bean but found 2: chapter05.Web,chapter05.Store
CHECK PASS 05 multiple candidates fail without selection -> UnsatisfiedDependencyException
CHECK PASS 05 multiple failure root is ambiguity
CHECK PASS 05 Primary resolves single injection
CHECK PASS 05 Qualifier narrows candidate
CHECK PASS 05 collection contains both even with Primary
CHECK PASS 05 generic String candidate selected
CHECK PASS 05 ObjectProvider injection leaves lazy target uncreated
CHECK PASS 05 provider resolves one lazy singleton on demand
CHAPTER 05 PASS
