Moving to Testcontainers 2.0 means new coordinates for both the module and the FQN. If you're using a deprecated container, we no longer provide a ConnectionDetails for it, which leads to something like this:
No ConnectionDetails found for source '@ServiceConnection source for Bean 'mongoDBContainer' defined in class path resource …