First, download the maven, jdk and tomcat from the official website
Jdk, Maven and tomcat environment variable configuration
By the previous article, the development environment can be directly written to say the path / etc / profile, you can execute the following command
echo '#set Java environment'>>/etc/profile
echo 'export JAVA_HOME = / root / jdk1.8.0_241' >> / etc / profile # java to the java directory to the directory on your system
echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile
echo 'export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar'>>/etc/profile
echo '#set Tomcat environment'>>/etc/profile
echo 'export CATALINA_HOME = / root / apache-tomcat-8.5.53' >> / etc / profile # The tomcat tomcat directory instead of the directory on your system
echo 'export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH'>>/etc/profile
echo 'export CLASSPATH=.:$JAVA_HOME/lib:$CATALINA_HOME/lib'>>/etc/profile
echo '#set Maven environment'>>/etc/profile
echo '= Export MAVEN_HOME / the root / Apache-maven- 3.6 . . 3' >> / etc / Profile # maven of the directory to the own system catalog maven
echo 'export PATH=$MAVEN_HOME/bin:$PATH'>>/etc/profile
source /etc/profile
maven global configuration Ali cloud images
Edit maven folder under the conf folder setting.xml
vim /root/apache-maven-3.6.3/conf/settings.xml
Around 135 line
<mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>https://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
Ali cloud Maven Mirroring Issue
https://help.aliyun.com/document_detail/102512.html?spm=a2c4e.11153940.0.0.213c7bdemo7OSM
maven Global Configuration Profile (development, test and production environments)
I have not used, used, and learn about how to do
VsCode configuration, to be updated
Maven package documentation guide portion in SpringFrameWork
application.yml
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Hot deployment