Unable to connect to mongodb atlas from my Google App Engine java app

Unable to connect to mongodb atlas from my Google App Engine java app.

When I run
Mvn appengine:run it can connect.
But after i deployed
Mvn appengine:deploy
It doesn’t work any more.

Anyone have similar experience/solution?