2019.3.4
File--> Project Structure…
修改项目 jdk和项目语言等级
修改jdk版本
File--> Ohter Settings-->Structure for New Project…
File--> Settings-->Build, Execution, Deployment-->Build Tools-->Maven
File--> Settings-->Appearance & Behavior-->Appearance
File--> Settings-->Editor-->Font
File--> Settings-->Editor-->General-->Auto Import
File--> Settings-->Editor-->General-->Appearance
File--> Settings-->Editor-->General-->Code Completion
File--> Settings-->Editor-->General-->Editor Tabs
File--> Settings-->Editor-->General-->File Encodings
File--> Settings-->Editor-->General-->File Types
导入热部署Maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
导入热部署Maven插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.5.RELEASE</version>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
File--> Settings-->Build, Execution, Deployment-->Compiler
Ctrl+Shift+Alt+/
File--> Settings-->Build, Execution, Deployment-->Compiler-->Annotation Processors
/**
* ${DESCRIPTION}
*
* @author Wang Chinda
* @date ${DATE}
* @see
* @since 1.0
*/
File--> Settings-->Editor-->General-->File And Code Templates
File--> Settings-->Editor-->General-->Live Templates
快捷键:tms
模板
try {
TimeUnit.MINUTES.sleep($END$);
} catch (InterruptedException e) {
e.printStackTrace();
}
快捷键:tss
模板
try {
TimeUnit.SECONDS.sleep($END$);
} catch (InterruptedException e) {
e.printStackTrace();
}
快捷键:tmss
模板
try {
TimeUnit.MILLISECONDS.sleep($END$);
} catch (InterruptedException e) {
e.printStackTrace();
}
快捷键: ft10
模板
for (int i = 1; i <= 10; i++) {
new Thread(() -> {
$END$
}, String.valueOf(i)).start();
}
快捷键: ft20
模板
for (int i = 1; i <= 20; i++) {
new Thread(() -> {
$END$
}, String.valueOf(i)).start();
}
快捷键: ftn
模板
for (int i = 1; i <= $VAR$; i++) {
new Thread(() -> {
$END$
}, String.valueOf(i)).start();
}
快捷键: tcn
模板
Thread.currentThread().getName()
快捷键: nt
模板
new Thread(() -> {
$END$
}, "$VAR$").start();
快捷键: ltcf
模板
lock.lock();
try {
$END$
} catch (Exception e) {
e.printStackTrace();
} finally {
lock.unlock();
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章