ENV Spring=6.2.11 Java=21.0.11
CHECK PASS 00 manual/container both return 25.00
CHECK PASS 00 both repositories saved once
CHECK PASS 00 reject zero quantity -> IllegalArgumentException
CHECK PASS 00 reject negative quantity -> IllegalArgumentException
CHECK PASS 00 reject zero unit price -> IllegalArgumentException
CHECK PASS 00 reject negative unit price -> IllegalArgumentException
CHECK PASS 00 reject invalid persisted amount -> IllegalArgumentException
CHECK PASS 00 invalid amount does not save
CHECK PASS 00 context close destroys managed repository
CHECK PASS 00 manual repository requires explicit destroy
10月 02, 2026 3:33:51 下午 org.springframework.context.support.AbstractApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderService': Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'blog.spring.OrderRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
CHECK PASS 00 missing repository fails refresh -> UnsatisfiedDependencyException
CHAPTER 00 PASS
