当前位置:网站首页>idea 热启动失效解决方案
idea 热启动失效解决方案
2022-06-26 23:58:00 【无奈的小码农】
热启动失效解决方案
一:内网环境解决热启动失效问题
当使用eclipse配置热启动时,直接添加jar和插件即可,但是使用idea时,需要自己修改一下设置。
**注意:**如果换一个项目,也可能热启动失效,是因为idea重置了默认设置,重新按照下面的步骤设置即可。
1、找到Setting---->Compiler设置(也可以快捷键:Ctrl+Alt+S),勾选"Build project automatically"
2、点击快捷键Alt+Ctrl+shift+a+/,(如果不行,就点击Alt+shift+a)选择Registry,打开界面。
3、打开界面,勾选 compiler.automake.allow.when.app.running即可,如果没有这个选项,重置一下idea即可找到。
到此,热启动失效已解决,可以再重启一下idea。
二:内网环境解决热启动失效问题
1.pom 中添加spring-boot-devtools的包,optional必须设置true。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2.工程配置文件中加入热部署配置
# 开启热部署
spring.devtools.restart.enabled=true
#重启目录
spring.devtools.restart.additional-paths=src/main/java
#classpath目录下的templates文件夹内容修改不重启
spring.devtools.restart.exclude=templates/** 3.修改spring-boot-maven-plugin插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
若仍没生效的话按照内网环境的操作步骤去修改idea的配置。
边栏推荐
- 为什么EDR需要深度防御来打击勒索软件?
- 【Vscode】预览md文件
- Development and learning route of golang language
- 我的c语言进阶学习笔记 ----- 关键字
- 目标追踪拍摄?目标遮挡拍摄?拥有19亿安装量的花瓣app,究竟有什么别出心裁的功能如此吸引用户?
- No clue about complex data?
- Your connection is not private
- 泰国安全又划算的支付方式
- MindSpore新型轻量级神经网络GhostNet,在ImageNet分类、图像识别和目标检测等多个应用场景效果优异!
- In depth understanding of UDP in the transport layer and the use of UDP in sockets
猜你喜欢

50 tips that unity beginners can definitely use
![Cve-2022-30190 follina office rce analysis [attached with customized word template POC]](/img/69/8f0381e99655009159c5119c7b896f.png)
Cve-2022-30190 follina office rce analysis [attached with customized word template POC]

论文学习——降雨场次划分方法对降雨控制率的影响分析

Service discovery, storage engine and static website of go language

Introduction to message queuing

com.fasterxml.jackson.databind.exc.MismatchedInputException: Expected array or string. at [Source:x
![[microservices] understanding microservices](/img/62/e826e692e7fd6e6e8dab2baa4dd170.png)
[microservices] understanding microservices

1+1<2 ?! HESIC论文解读

Hit the point! The largest model training collection!

Oracle database basics concepts
随机推荐
Solid and ambient colors
当Transformer遇见偏微分方程求解
kubernetes可视化界面dashboard
CVE-2022-30190 Follina Office RCE分析【附自定义word模板POC】
Oracle 數據庫基本知識概念
基于SSMP的宠物医院管理系统
[microservices] Understanding microservices
Thesis study -- Analysis of the influence of rainfall field division method on rainfall control rate
Can I open an account for stock trading on my mobile phone? Is it safe to open an account for stock trading on the Internet
大赛报名 | AI+科学计算重点赛事之一——中国开源科学软件创意大赛,角逐十万奖金!
find_ Detailed use guide of CIRC
代码之外:写作是倒逼成长的最佳方式
全网最全的混合精度训练原理
com.fasterxml.jackson.databind.exc.MismatchedInputException: Expected array or string. at [Source:x
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Encapsulate servlet unified processing request
com.fasterxml.jackson.databind.exc.MismatchedInputException: Expected array or string. at [Source:x
Big guys talk about the experience sharing of the operation of the cutting-edge mindspore open source community. Come up with a small notebook!
数字格式化的 js 库
When transformer encounters partial differential equation solution