Building a local Java server environment

Source: Internet
Author: User
Tags phpmyadmin

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.