In this tutorial, we show you how to backup and restore MongoDB with the commands : mongoexport and mongoimport.
A collection with NumberLong type data as follows :
In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package. And the worst is you need click on the class name and press ALT + ENTER keys to import the package one by one.