Write directory title here
1 Requirements analysis and environment construction
1. Demand analysis
2. Environment construction
1.2.1 First configure the mysql environment
First look up the mysql environment
[root@hadoop122 ~]# mysql --version
mysql Ver 14.14 Distrib 5.7.28, for Linux (x86_64) using EditLine wrapper
[root@hadoop122 ~]#
Then use navicat to connect to the database, just connect
1.2.2 Configure maven environment
Remember to remember the location of this maven installation and assign it to the environment variable of the computer
D:\IntelliJ IDEA 2022.2\plugins\maven\lib\maven3\bin
C:\Users\20120>mvn -version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: D:\IntelliJ IDEA 2022.2\plugins\maven\lib\maven3\bin\..
Java version: 1.8.0_152, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_152\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Configure the setting.xml inside this
Then configure the mirrors
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
Configure setting environment
Configure the JDK environment in Idea
Create the following project
lombok plug-in installation
Import the data into it, 760M data, it can take about one minute
to configure the Maven environment
Pack it into a War package and send it to linux
Start tomcat access
[root@hadoop122 ~]# cd /usr/tomcat/apache-tomcat-7.0.68
[root@hadoop122 apache-tomcat-7.0.68]# cd bin
[root@hadoop122 bin]# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-7.0.68
Using CATALINA_HOME: /usr/tomcat/apache-tomcat-7.0.68
Using CATALINA_TMPDIR: /usr/tomcat/apache-tomcat-7.0.68/temp
Using JRE_HOME: /usr/java/jdk1.8.0_261/
Using CLASSPATH: /usr/tomcat/apache-tomcat-7.0.68/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.68/bin/tomcat-juli.jar
Tomcat started.