Fix https://github.com/spring-projects/spring-boot/issues/35332
Comment From: wilkinsona
Thanks for the PR but I'm not sure that @ServiceConnection is missing here. As described in the text that comes before it, the code is intended to be an example of pure Testcontainers code. The subsequent tip then explains that you can use @ServiceConnection or @DynamicPropertySource. You don't have to use @ServiceConnection so I don't think it really belongs in the earlier pure-Testcontainers example.
Comment From: quaff
Thanks for the PR but I'm not sure that
@ServiceConnectionis missing here. As described in the text that comes before it, the code is intended to be an example of pure Testcontainers code. The subsequent tip then explains that you can use@ServiceConnectionor@DynamicPropertySource. You don't have to use@ServiceConnectionso I don't think it really belongs in the earlier pure-Testcontainers example.
The typo should be fixed at least, I've created another PR https://github.com/spring-projects/spring-boot/pull/35369