一.项目编码设置
二spring boot项目编译,热部署
1.
2.同时按住 Ctrl + Shift + Alt + / 然后进入Registry ,勾选自动编译并调整延时参数。
compiler.automake.allow.when.app.running -> 自动编译
compile.document.save.trigger.delay -> 自动更新文件
3.顶部菜单- >Edit Configurations->SpringBoot插件->目标项目->勾选热更新。
4在pom文件中添加maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>true</scope>
<optional>true</optional>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 没有该配置,devtools 不生效 -->
<fork>true</fork>
<addResources>true</addResources>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
在项目添加热部署插件(可选)
温馨提示:
如果因为可能项目十分臃肿,每次都自动热重启很慢而影响开发效率,可以在POM移除spring-boot-devtools依赖,然后使用Control+Shift+F9进行手工启动快速更新!!
具体步骤:在POM文件添加热部署插件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
三.忽略大小写提示
四.idea主题修改
五.打开多个页面时候多行
六.设置代码区的字体
七.文档注释模板
1类模板
2方法的模板注释
File–>Settings–>Editor–>Live Templates
新建组:命名为userDefine
新建模板:命名为*
*
- @Author chengpunan
- @Description //TODO e n d end end
- @Date t i m e time time d a t e date date
- @Param p a r a m param param
- @return
r
e
t
u
r
n
return
return
**/