Configuration JavaWeb development environment + vscode configuration under linux

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

https://mvnrepository.com/artifact/org.springframework?__cf_chl_captcha_tk__=7b6cbf38cb9fddb30a721c342666dabd61a59815-1585817068-0-AX3IOuNIOrjYbMsoftFKjyegP1YUT1ygjMuyHPRaR6Z-Do3ffSnbRLUhbo02lZSvhD5t-B55RCh5zGgQ991Z2hKTt0JAMvBW3TyOAfzZjy1ZdoNAPUWaVcJKBmRvBt3cPMwuttTr4GGn7xwGa5OqskzWeEbMkqyu6nB_2Xbn-NEs4kJXqRHmCUEM5niTmzzKhqjROXs1J_-yoTj83ajvMEtzr1WWS-jPnCm6vAK3-FUqlzs14qzNON2jzef1a5QA8fBVoml7nr7W9l0RpCkaGwGfDz-iCUysamxCpiNki8TmZ_4bLUO1b3MBfrAoPohcmE6FXRYjgZAd4p4otadpNuK9FQvNKd7o-xq_vuMrLBAg4h02b-5WzkgoTK-1saZVFXScrrIqb0PNDlsBtERijmQ

 application.yml

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Hot deployment

Guess you like

Origin www.cnblogs.com/YC-L/p/12621342.html