mongoClientOptions class not getting imported after spring boot and java upgradation

I have upgraded my spring boot and java version to 2.6.7 and 17 respectively. But after this, I was unable to import mongoClientOptions class which is present in my class path (jar file). Im using spring boot data mongoDb dependency in pom.xml. Can someone plz help me.

Hi @Rana_B,

Welcome to the MongoDB Community forums :sparkles:

Can you please share the error message you are getting while importing the mongoClientOptions class? That will give us more insight to help you better.

If you have any doubts, please feel free to reach out to us.

Kushagra Kesav