Tomcat and Maven environment variable configuration and explanation of the operation in IDEA

1.Tomcat's environment variable configuration:

Download the compressed package of Tomcat:

Click to enter Tomcat official website

1. After downloading the compressed package, unzip

2. Start: E:\Environment\apache-tomcat-9.0.24\bin\startuo.bat

3. Test: http://localhost:8080/

4. Configure environment variables:
Insert picture description here
5. When opening startup.bat in the bin directory of tomcat for the first time, garbled characters will appear,
so it is necessary to set the encoding problem

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
#window默认是GBK
java.util.logging.ConsoleHandler.encoding = GBK 

The tomcat configuration is complete

2. Maven environment variable configuration

1. Download the compressed package, unzip and
click to enter the maven official website

2. Configure environment variables:
Insert picture description here

1. Set up the warehouse

Create a new folder maven-repo
and configure the warehouse address in setting.xml
Insert picture description here

2. Set up Alibaba Cloud image

<mirror>
      <id>nexus-aliyun</id>  
      <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>  
      <name>Nexus aliyun</name>  
      <url>http://maven.aliyun.com/nexus/content/groups/public</url> 
    </mirror>

Guess you like

Origin blog.csdn.net/lirui1212/article/details/104407446