IDEA-Maven environment configuration and use, idea-maven environment Configuration
1. Download Maven
IDEA's previous: https://www.jetbrains.com/
1. Click to enter
1. Previous: http://www.apache.org/operation steps: We click to enter Projects ----> (1 ),
(2 ),
(3 ),
(4 ),
(5) decompress the package and we can see this directory.
(6) After extracting the file, we need to add two new environment variables.
1. M2_HOME ------------------> D: \ javafile \ apache-maven-3.5.0
2. PATH: -------> D: \ javafile \ apache-maven-3.5.0 \ bin
(7) enter the doscommand to test whether the configuration environment can be run.
(8) Click to enter this directory.
(9) Click to edit the maven configuration file.
(10) create a MavenRepository File
(11) add an image to the maven configuration file to access the local server. The download speed is faster.
(12) return to IDEA
(13) Check and select the maven directory
(14) Create an empty project
(15 ),
(16 ),
(17 ),
(18 ),
(19 ),
(20) check whether there is something missing. Disable IDEA and restart it before automatic import.
2. Configure the mysql and JSTL files.
Previous address: http://www.mvnrepository.com/
(1) Search for mysql and click MySQL Connector/j.
(2) the version we selected this time is 6.0.6.
(3) copy the file directly after entering the file.
(4) Go to IDEA and paste it to student-web.
(5) The following is the same as above.