Use mongobatis to handle mongodb like mybatis
According to: There are two Maven artifacts available in the release.
The preferred artifact for new applications is mongodb-driver-sync.
so, we base on mongodb-driver-sync.
#start
-
use mongoShell.txt to create data in your mongodb
-
run Test.java as Java Application
#note now just support aggregate and standalone.