After the back-end colleague left, need to build a Java back-end server environment, special records for forgetting
Install MySQL
-The MAC comes with MySQL
-Configure. Bash_profile Easy to call
-Give permission: "Grant all privileges on * * to ' root ' @ ' 127.0.0.1 ' identified by ' passw0rd ' with GRANT option;"
Installing phpMyAdmin
-Put the downloaded phpmyadmin into the local webrootdocument directory.
Install the latest version of Eclipse
-Download the latest eclipse "http://www.eclipse.org/downloads/"
-The latest Mac version has its own Maven plugin, but Maven needs to be installed separately
Installing MAVEN
-Download http://maven.apache.org/download.cgi
-Unzip the downloaded package to the appropriate directory, the directory structure I used is/usr/local/maven/maven-3.3.1
-Set Java_home, variable name requires consistency, because the MAVEN runtime requires it
-Configure Maven Root
+ Export maven_root=/usr/local/apache-maven-3.3.1
+ Path=${path}:${maven_root}/bin
-Set MAVEN installation path in eclipse
-Under Project directory, execute "mvn install" to download its dependencies
-Completed in Eclipse Import or new Maven project
MyBatis Tools Engineering
-Using a MAVEN project (Generatortool), put the table in the database, generate the corresponding database operation code, the logical Operation interface code
-Automatic generation of code four sets, Mapper, Mapperxml, model, service
-Copy them into the project pair folder, where the XML files are copied into the corresponding folder under Resources
http://blog.csdn.net/f_zongjian/article/details/24144803
POI Tool Engineering
-This Java project, using Java to manipulate Excel's POI interface, exports data from Excel to the Dict table in MySQL.
Installing the Eclipse plugin Run-jetty-run
-Run-jetty-run equivalent to impersonating a, Apache service under the current project directory
-Set the operating mode of the current project and configure a run configuration to run.
Thank ensnared, Sun Yan two colleagues for their help.
Building a local Java server environment