首先讓maven使用阿里雲:
找到maven安裝目錄下 conf 中的 settings.xml 文件
打開並查詢到“mirrors”將其使用阿里雲的配置替換
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
其次讓maven使用JDK1.8編譯項目:
找到maven安裝目錄下 conf 中的 settings.xml 文件
打開並查詢 “profiles”將其使用JDK1.8編譯
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
配置IDEA中maven:
打開IDEA,找到 setting-->build,execution....-->Build Tools-->Maven
設置Maven home directory:E:/Program Files/apache/maven-3.6.3
User setting file:E:\Program Files\apache\maven-3.6.3\conf\settings.xml
Local repository:E:\Program Files\apache\maven-3.6.3\repository 配置maven倉庫
在IDEA中plugins下載對應插件:lombok(簡化javabin的開發);mybatisx(快速定位xml文件)
安裝vscode軟件(開發前段項目):
安裝對應插件:auto close tag;auto rename tag;chines simplified;eslint;HTML CSS Support;
JavaScript (ES6) code snippets;Live Server;open in browser;Vetur