DEA for mac 热部署

被刻印的时光 ゝ 提交于 2020-08-12 02:22:26

IDEA 在Mac下的热部署配置步骤,话不多说,直接上

1、pom文件中添加依赖

<!-- 开启热部署 -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <!-- 开启热部署 -->
            <configuration>
                <fork>true</fork>
            </configuration>
        </plugin>
    </plugins>
</build>

2、IntelliJ IDEA--Preferences……进入Preferences配置页面,或者用快捷键 command+,
DEA for mac 热部署
3、勾选Build preject automatically,点Apply,点击OK。
DEA for mac 热部署


4、连续按两次shift键,打开选择框,输入reg,选择“Registry……”
DEA for mac 热部署

5、勾选compiler.automake.allow.wher.app.running,点Close关闭。
DEA for mac 热部署

6、项目中选择“Edit Configurations……”
DEA for mac 热部署

7、On 'Update' action和On frame deactivation都选择:Update classes and resources,点击Apply,点击OK。
DEA for mac 热部署

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!