Problems connecting to Atlas with Spring Data: connection reset

I added this to the POM.xml

org.mongodb
mongodb-driver-sync
3.8.1

Know I am getting this error:
Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/mongodb/connection/DefaultClusterFactory] with root cause java.lang.ClassNotFoundException: com.mongodb.connection.DefaultClusterFactory