热部署的小简介:
可以不重启服务器的情况下进行编译/部署项目;
热部署更多在生产环境下使用
- 1.在pom.xml添加jar包
2.在Settings设置里对Build project automatically这一项打勾
3.ctrl+shift+alt+/,选择Registry,对compiler,automake.allow.when.app.running这一行打勾
4.然后重新运行就会触发自动编译部署了。
步骤1:在pom.xml添加热部署jar包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
步骤2:在Settings设置里对Build project automatically这一项打勾,别忘了保存
步骤3:选择Registry
然后会打开以下注册页面,然后对compiler,automake.allow.when.app.running这一行打勾保存一下
然后重启一下idea就行了。