I\'m learning MongoDB with Java. I\'m trying to insert data to MongoDB with Java driver. I\'m doing inserting like in MongoDB tutorial and every thing is okey. But if I want
You need to configure the CodeRegistry to use the PojoCodecProvider as explained here:
http://mongodb.github.io/mongo-java-driver/3.7/driver/getting-started/quick-start-pojo/