Date from Java spring boot to mongodb

How to add a Date field in mongodb from java spring boot?
It must not be a String when we check the document in db.
It must be Date data-type of mongodb.