When I insert a List into mongodb, there is a problem:
Exception in thread \"main\" java.lang.IllegalArgumentException: can\'t serialize class mongodb.Person
Just implement Serializable interface in Person class.
Also it will be good to define a serialVersionUID
in your class.
AFAIK, while creating POJO class in java, the class should be serializable, if it is going to be transfered over some stream, have a default constructor, and allows access to properties/fields using getter and setter methods.
You might be interested in reading this: Discover the secrets of the Java Serialization API