当前位置:网站首页>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的配置。
边栏推荐
- Concepts de base de données Oracle
- 入侵痕迹清理
- Memorizing byte order of big and small end
- Hit the point! The largest model training collection!
- Installation of xshell and xftp
- Is it safe for CITIC Securities Commission to open an online account and speculate in stocks
- 技术干货|极速、极智、极简的昇思MindSpore Lite:助力华为Watch更加智能
- Let agile return to its original source -- Some Thoughts on reading the way of agile neatness
- Is it reliable to open an account for stock trading on the mobile phone? Is it safe to open an account for stock trading on the Internet
- 简单快速的数网络(网络中的网络套娃)
猜你喜欢

全网最全的混合精度训练原理

Com. Faster XML. Jackson. DataBind. Exc.mismatchedinputexception: tableau ou chaîne attendu. At [Source: X

Technical dry goods | top speed, top intelligence and minimalist mindspore Lite: help Huawei watch become more intelligent

根据文件名批量生成文件夹
![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]

复杂数据没头绪?

当Transformer遇见偏微分方程求解

【Mysql】时间字段默认设置为当前时间

Thesis study -- Analysis of the influence of rainfall field division method on rainfall control rate

An article takes you to learn container escape
随机推荐
Installation of xshell and xftp
我的c语言进阶学习笔记 ----- 关键字
Cve-2022-30190 follina office rce analysis [attached with customized word template POC]
当Transformer遇见偏微分方程求解
股票怎样在手机上开户安全吗 网上开户炒股安全吗
互联网行业,常见含金量高的证书,看看你有几个?
深度学习方法求解平均场博弈论问题
[微服务]Nacos
The user adds a timer function in the handler () goroutine. If it times out, it will be kicked out
In depth understanding of UDP in the transport layer and the use of UDP in sockets
No clue about complex data?
[test] the content of the hottest test development learning route has been updated again to help pass the customs and open the test of large factories
Mindspire, a domestic framework, cooperates with Shanshui nature conservation center to find and protect the treasure life in the "China water tower"
入侵痕迹清理
Why does EDR need defense in depth to combat ransomware?
Introduction to message queuing
技术干货|什么是大模型?超大模型?Foundation Model?
Kubeadm create kubernetes cluster
【leetcode】275. H index II
网络中的网络(套娃)