環(huán)境準備:
maven配置:打開,maven安裝目錄,apache-maven-3.5.0/conf/setting.xml,配置鏡像 配置阿里云鏡像: 因為springboot的starter會有很多包的依賴的傳遞,需要下載很多相關(guān)的包,如果采用原生中央倉庫就會比較慢,而且不一定能下載下來,而配置阿里云鏡像可以把速度提上來。 <!-- 阿里云倉庫鏡像 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror> <!-- 配置jdk1.8 profile --> <profile> <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> </profile> IDEA工具全局配置:(不要在某一個項目里配置) 1)jdk配置 按照下圖操作即可 ![]()
![]()
![]()
配置好以后,下次新建的項目就會默認采用jdk1.8環(huán)境 2)配置maven 按下圖所示配置即可 |
|
來自: Go_Ahead > 《SpringBoot》