当前位置:网站首页>IDEA概述和安装及调试
IDEA概述和安装及调试
2022-07-31 05:17:00 【今晚务必早点睡】
1.IDEA概述和安装
1.1 IDEA概述
IDEA 全称 IntelliJ IDEA,是java编程语言开发的集成环境。IntelliJ在业界被公认为最好的java开发工具,尤其在智能代码助手、代码自动提示、重构、JavaEE支持、各类版本工具(git、svn等)、JUnit、CVS整合、代码分析、 创新的GUI设计等方面的功能可以说是超常的。IDEA是JetBrains公司的产品,这家公司总部位于捷克共和国的首都布拉格,开发人员以严谨著称的东欧程序员为主。
集成环境:把代码编写,编译,执行,调试等多种功能综合到一起的开发工具。
IDEA的下载:https://www.jetbrains.com/idea/
两个选择,Ultimate版本(收费)和Community版本(免费)。也可以选择版本型号,2021.2.3及以上的版本由于官方禁止了试用功能, 本次演示用Ultimate的2021.1.1版本
1.2 IDEA的安装
下载完成后,双击开始安装
1.3使用IDEA创建一个maven项目
1.4 配置"TomCat"(本节测试失败,不用看)
此时,报错:
Skipped installing application listeners due to previous error(s)
网上多说是tomcat与jdk的版本不符
于是,进入tomcat的官网:https://tomcat.apache.org/whichversion.html
可以看到,tomcat7用于jdk6和7以后,换个tomcat9再试一下
报此错误:
28-Apr-2022 22:47:05.879 涓ラ噸 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
鉴于刚玩java,初步判定是jar包问题,这个问题后面解决。
2.IDEA的HelloWorld
2.1 IDEA的HelloWorld的编写步骤
package com.test;
public class HelloWorld {
//可直接输入psvm,一键生成下行代码
public static void main(String[] args) {
System.out.println("HelloWorld");
}
}
3.IDEA中项目结构
3.1 回顾Helllo World案例步骤
3.2 IDEA项目结构
3.3 设置字体
4. IDEA中内容辅助键和快捷键
4.1 内容辅助键
快速生成语句
快速生成main()方法:psvm,回车
快速生成输出语句:sout,回车
内容辅助键
Ctrl+Alt+space(内容提示,代码补全等) ---如果用不了,可能输入法热键被占用
4.2 快捷键
注释
单行:选中代码,Ctrl+/,再来一次,就是取消
多行:选中代码,Ctrl+Shift+/,再来一次,就是取消
格式化
Ctrl+Alt+L
5. IDEA中模块操作
5.1 IDEA中模块操作分类
新建模块 删除模块 导入模块
5.2 IDEA中的新建模块操作
5.3 IDEA中模块删除
5.4 IDEA中导入模块
边栏推荐
- 二进制转换成十六进制、位运算、结构体
- 超参数优化-摘抄
- Web Screenshots and Reverse Proxy
- Cholesterol-PEG-Thiol CLS-PEG-SH 胆固醇-聚乙二醇-巯基
- DC-CDN学习笔记
- Tensorflow steps on the pit while using it
- Remote file xxx is mapped to the local path xxx and can‘t be found. You can continue debugging....
- Nmap的下载与安装
- 变分自编码器VAE实现MNIST数据集生成by Pytorch
- softmax函数详解
猜你喜欢
活体检测CDCN学习笔记
mPEG-DSPE 178744-28-0 Methoxy-polyethylene glycol-phosphatidylethanolamine linear PEG phospholipids
VTK环境配置
Cholesterol-PEG-Thiol CLS-PEG-SH Cholesterol-Polyethylene Glycol-Sulfhydryl
unicloud cloud development record
pyspark.ml特征变换模块
VTK:Could not locate vtkTextRenderer object.
mPEG-DSPE 178744-28-0 甲氧基-聚乙二醇-磷脂酰乙醇胺线性PEG磷脂
random.randint函数用法
Cholesterol-PEG-DBCO 胆固醇-聚乙二醇-二苯基环辛炔化学试剂
随机推荐
PyTorch学习笔记08——加载数据集
朴素贝叶斯文本分类(代码实现)
2022年SQL大厂高频实战面试题(详细解析)
拒绝采样小记
TransactionTemplate transaction programmatic way
活体检测CDCN学习笔记
DSPE-PEG-COOH CAS: 1403744-37-5 Phospholipid-polyethylene glycol-carboxy lipid PEG conjugate
MySQL 出现 The table is full 的解决方法
pyspark.ml特征变换模块
After unicloud is released, the applet prompts that the connection to the local debugging service failed. Please check whether the client and the host are under the same local area network.
如何修改数据库密码
pytorch学习笔记10——卷积神经网络详解及mnist数据集多分类任务应用
Cholesterol-PEG-Azide CLS-PEG-N3 Cholesterol-PEG-Azide MW:3400
VS通过ODBC连接MYSQL(一)
Podspec automatic upgrade script
mPEG-DMPE 甲氧基-聚乙二醇-双肉豆蔻磷脂酰乙醇胺用于形成隐形脂质体
Cholesterol-PEG-NHS NHS-PEG-CLS 胆固醇-聚乙二醇-活性酯可修饰小分子材料
VTK:Could not locate vtkTextRenderer object.
mysql 事务原理详解
Numpy常用函数