1.下载社区版(2023.3.2版本)
Download IntelliJ IDEA: The Capable & Ergonomic Java IDE by JetBrains
2.修改idea缓存配置文件位置
2.1新建D:Program FilesideaCache
2.2修改D:Program FilesideaIC-2023.3.2.wininidea.properties
注意斜杠方向
#---------------------------------------------------------------------# Uncomment this option if you want to customize a path to the settings directory.#---------------------------------------------------------------------# idea.config.path=${user.home}/.IdeaIC/config# zyidea.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# zyidea.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# zyidea.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# zyidea.log.path=${idea.system.path}/log3.安装插件(记得重启)
打开后,左侧选择,安装插件spring Initializr and Assistant(新建springboot项目用的),Chinese Language Pack EAP(官方汉化插件)
4.更换仓库位置,中心库地址
File->Settings->Build,Execution,Deployment->Build Tools->Maven,选中Override,修改Setting files地址
可在新建项目前设置,直接左侧Build,Execution,Deployment->Build Tools->Maven
4.1 maven_setting.xml
D:Program FilesmavenRepository 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
先关闭idea,再删除C:UsersAdministratorAppDataLocalJetBrainsIntelliJIdea2023.1MavenIndices下的文件
再打开idea就好了
当然因为前面idea配置的修改,路径已经变成D:Program FilesideaCache.IdeaICsystemMavenIndices
5.设置文件默认编码
File->Settings
6.导出设定
File->Manage IDE settings ->Export Settings,下次直接导入即可
7.新建项目