从事 java 开发工作两年,对 java 的开发工具 IDEA 是最为满意,编辑、编译、UT\CT全部本地搞定。下面简单介绍 IDEA 的安装与使用。
Step 1: 官网下载 IDEA 软件安装包,选择免费的开源版本,手动安装;
Step 2:下载 JDK
用 IDEA 创建 project,要想完成编译必须下载 jDK,并且安装,如安装在以下目录 C:\Program Files\Java\jdk-11.0.1 在IDEA configure 好,可能遇到一系列问题。
ERROR 1: Connect to repo.maven.apache.org:443
[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:1.5.4.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:1.5.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed: Connection timed out: connect -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e s