SpringBoot修改代码不用重启配置

2023-01-08 14:49:13

还是比较简单:

1.添加dev-tools的依赖

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

2.Settings配置Build project automatically,如下:

在这里插入图片描述3. “Shift+Ctrl+Alt+/”,选择 “Registry”,选中打勾 “compiler.automake.allow.when.app.running” 。步骤如下截图:
在这里插入图片描述在这里插入图片描述

  • 作者:动哒APP
  • 原文链接:https://dongda.blog.csdn.net/article/details/109723135
    更新时间:2023-01-08 14:49:13