intellij idea(spring boot)安装和配置

1.下载社区版(2021.3.2版本)

Download IntelliJ IDEA: The Capable & Ergonomic Java IDE by JetBrains

intellij idea(spring boot)安装和配置_第1张图片

2.修改idea缓存配置文件位置

2.1新建D:\Program Files\ideaCache

2.2修改D:\Program Files\ideaIC-2021.3.2.win\bin\idea.properties

注意斜杠方向

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IdeaIC/config
# zy
idea.config.path=D:/Program Files/ideaCache/.IdeaIC/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IdeaIC/system
# zy
idea.system.path=D:/Program Files/ideaCache/.IdeaIC/system

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins
# zy
idea.plugins.path=${idea.config.path}/plugins

#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log
# zy
idea.log.path=${idea.system.path}/log

3.安装插件(记得重启)

打开后,左侧选择,安装插件spring Initializr and Assistant(新建springboot项目用的),Chinese Language Pack EAP(官方汉化插件)

intellij idea(spring boot)安装和配置_第2张图片 

4.更换仓库位置,中心库地址

File->Settings->Build,Execution,Deployment->Build Tools->Maven,选中Override,修改Setting files地址 

可在新建项目前设置,直接左侧Build,Execution,Deployment->Build Tools->Maven

intellij idea(spring boot)安装和配置_第3张图片

 4.1 maven_setting.xml








  

  
  D:\Program Files\mavenRepository
  
  

  

  
  
    
  

  
  
    
  

  
  
    

    
  

  
  
    
    

    
        alimaven
        central
        aliyun maven
        http://maven.aliyun.com/nexus/content/repositories/central/
    
    
        alimaven
        aliyun maven
        http://maven.aliyun.com/nexus/content/groups/public/
        central
    
    
        central
        Maven Repository Switchboard
        http://repo1.maven.org/maven2/
        central
    
    
        repo2
        central
        Human Readable Name for this Mirror.
        http://repo2.maven.org/maven2/
    
    
        ibiblio
        central
        Human Readable Name for this Mirror.
        http://mirrors.ibiblio.org/pub/mirrors/maven2/
    
    
        jboss-public-repository-group
        central
        JBoss Public Repository Group
        http://repository.jboss.org/nexus/content/groups/public
    
    
        google-maven-central
        Google Maven Central
        https://maven-central.storage.googleapis.com
        
        central
    
    
    
        maven.net.cn
        oneof the central mirrors in china
        http://maven.net.cn/content/groups/public/
        central
    

  



  

  
    

    
  

  

这里只会使用第一个镜像,后面的镜像是用于手动切换

4.2异常idea indexed maven repositories error

intellij idea(spring boot)安装和配置_第4张图片

 先关闭idea,再删除C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2021.1\Maven\Indices下的文件

再打开idea就好了

当然因为前面idea配置的修改,路径已经变成D:\Program Files\ideaCache\.IdeaIC\system\Maven\Indices

 

5.设置文件默认编码

File->Settings

intellij idea(spring boot)安装和配置_第5张图片

 

6.导出设定

File->Manage IDE settings ->Export Settings,下次直接导入即可intellij idea(spring boot)安装和配置_第6张图片

 

7.新建项目

intellij idea(spring boot)安装和配置_第7张图片

intellij idea(spring boot)安装和配置_第8张图片 

 

你可能感兴趣的:(java,记录,intellij-idea,spring,boot,java)