"Step by Step Spring+maven+mongodb" one: Environment configuration
First, the development environment
Eclipse (Java EE Edition)
Second, the environment configuration 1.JDK configuration
1.1.1 Download JDK
: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html, find the corresponding version, download the installation.
1.1.2 Configuring Environment variables
Open environment variable, system variable, new, variable name java_home, variable value: The above installation path (until the bin parent directory).
Find path, edit, variable value add%java_home%/bin;
2.maven Configuration
2.1 Download Maven
: http://maven.apache.org/download.cgi find the corresponding version, download unzip
2.2 Configuring Environment variables
Open environment variable, system variable, new, variable name m2_home. Variable Value: The above decompression path (until the bin parent directory)
Find path, edit, variable value add%m2_home%/bin;
3.MONGODB Installation 3.1 Monogo service installation
3.1.1. http://www.mongodb.org/downloads
3.1.2. Installation
3.1.3. Enter the bin to run the Mongod, the following problems occur
Solve:
(1) Create: C:\data\db folder,
(2) Create a C:\data\log\mongod.log file.
(3) Create: C:\mongodb\mongod.cfg file, enter the following text in the file:
Logpath= C:\data\log\mongod.log
Dbpath=c:\data\db
3.1.4. Running Mongod Normal
In the browser input localhost:27017, if the IT lookslike is displayed it is trying to access MongoDB over HTTP on the native driver port. OK, continue to the next step.
Reopen a CMD window (before the window closes), run MONGO, normal
3.2 MongoDB Client Installation
Self-installing, visualizing data
"Step by Step Spring+maven+mongodb" one: Environment configuration