0


IDEA2022版本设置热部署

1、开启IDEA的自动编译(静态)
具体步骤:打开顶部工具栏 File -> Settings -> Build,Execution,Deployment -> Compiler 然后勾选 Build project automatically 。
·

2、 开启IDEA的自动编译(动态)
具体步骤:打开顶部工具栏 File -> Settings -> Advanced Settings -> Compiler -> 然后勾选 Allow auto-make to start even if developed application is currently running。
在这里插入图片描述

3、开启IDEA的热部署策略(非常重要)
具体步骤:点击Edit COnfigurations…进入

在这里插入图片描述

选择Modif options -> On ‘Updata’ actrion -> Update classes and resources

在这里插入图片描述

4、在pom.xml文件中导入热部署插件

1.添加plugin到pom.xml
复制代码

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><fork>true</fork><addResources>true</addResources></configuration></plugin></plugins></build>
```java
标签: intellij-idea java

本文转载自: https://blog.csdn.net/weixin_43972609/article/details/129193443
版权归原作者 在工地上写代码 所有, 如有侵权,请联系我们删除。

“IDEA2022版本设置热部署”的评论:

还没有评论