为了账号安全,请及时绑定邮箱和手机立即绑定

idea中SpringBoot热部署时mapping偶然出现丢失的问题。

idea中SpringBoot热部署时mapping偶然出现丢失的问题。

DIEA 2018-11-26 04:00:27
idea中SpringBoot热部署时mapping偶然出现丢失的问题。
查看完整描述

1 回答

?
交互式爱情

TA贡献1712条经验 获得超3个赞

你是不是有些步骤没做?

1.添加以下Spring个boot Dev Tools依赖项:

1

2

3

4

5

6

  <!-- hot swapping, disable cache for template, enable live reload -->

  <dependency>

      <groupId>org. Spring framework. boot </groupId>

      <artifactId> Spring - boot -devtools</artifactId>

      <optional>true</optional>

  </dependency>

 2. 自动构建项目

1

File –> Setting –> Build, Execution, Deployment –> Compiler –> 选中: Build project automatically

3. Intellij 注册表

3.1按Shift + Ctrl + A(Win /Lin)或Command+CTRL+A (Mac)打开一个弹出窗口,键入registry。

 


查看完整回答
反对 回复 2018-12-08
  • 1 回答
  • 0 关注
  • 1013 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信