当前位置:网站首页>IDE idea automatic compilation and configuration of on update action and on frame deactivation
IDE idea automatic compilation and configuration of on update action and on frame deactivation
2022-04-23 04:32:00 【The hunter is eating meat】
List of articles
On Upate Action
And On Frame Deactivation
The setting of these two options , Depend on How the project is deployed yes exploded .
1、On Update action The meaning of
First of all to see On Update action
Related explanation , Literally , Namely Manual trigger update When you move What do you do .
As shown in the figure above , Yes 4 An option .
1、Update resources ---- Update static resources , such as html,js,css etc. Both run mode and debug mode take effect immediately .
2、Update classes and resources ---- to update java,jsp and Static resources .
- java After modification , Will be compiled into .class Then overlay to target/kao Under the folder ,IDE In debug mode , Immediate effect .IDE In operation mode , Not effective immediately , need redeployed It will take effect. .
- jsp After modification , When interviewed again , It will update automatically , Recompile to .java---->.class Save in t omcat Of work Under the table of contents . Since it is only during access that it is detected whether to modify , Need to recompile , therefore IDE Operation mode and IDE In debug mode , All effective immediately . Refresh the next page );
3、Redeployed ----- Redeployment , Publish to tomcat in , No restart tomcat, Instead, delete the original , And then redistribute ;
4、Restart server ----- restart tomcat
2、On frame deactivation The meaning of
Look again. On frame deactivation , intend IDE When inactivated What do you do , That is to say IDE When you lose focus What do you do .
Yes 3 An option :
- Do nothing --------- Don't do anything?
- Update resources ---- Update static resources , such as html,js,css etc. Both run mode and debug mode take effect immediately .
- Update classes and resources ---- to update java,jsp And static resources ditto .
3、 test On Update Action
Static resources don't need to be tested .
test On Update Action Of update classes and resources
Options stay debug Pattern And Operation mode The difference between the two .
3.1、 On Update Action Operation mode
Operation mode Next ,jsp yes update classes and resources It's immediate , however .java After document modification It will not take effect immediately . As shown in the figure below .
3.2、 On Update Action debug Debug mode
debug Debug mode Next ,jsp and java File modification Will take effect immediately . As shown in the figure below .
4、 test On frame deactivation
test On frame deactivation , namely IDE Do something automatically when you lose focus , We test update classes and resources
Options , Let's say Debug mode For example , Operation mode except java The modification will not take effect automatically , Others are consistent .
5、 summary
Officially recommended configuration , As shown in the figure below :
On Update action choice update classes and resources
Option ,
When in debug Pattern Next (java、jsp all Immediate effect )
When in Operation mode Next (jsp Immediate effect ,java need redeploy It will take effect. ) .
On frame deactivation , When IDE When you lose focus Automatic triggering , And in the development process You may need to query information or Chat with people Or do something else ,IDE Need to keep losing focus . Every time you lose focus, it automatically triggers update ,CPU once It costs a lot , The computer slows down in an instant , So there's no need to , Set to Do nothing
best , The official default is Do nothing
.
The configuration I recommend , As shown in the figure below :
such , Static files are automatically updated , The system does not need to be restarted . java Files need to be updated manually . It's a compromise .
版权声明
本文为[The hunter is eating meat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230417435953.html
边栏推荐
猜你喜欢
Nature medicine reveals individual risk factors of coronary artery disease
无线充电全国产化电子元件推荐方案
[AI vision · quick review of today's sound acoustic papers, issue 2] Fri, 15 APR 2022
【BIM+GIS】ArcGIS Pro2.8如何打开Revit模型,BIM和GIS融合?
The perfect combination of collaborative process and multi process
[AI vision · quick review of robot papers today, issue 32] wed, 20 APR 2022
Microbial neuroimmune axis -- the hope of prevention and treatment of cardiovascular diseases
Phishing for NFT
MATLAB lit plusieurs diagrammes fig et les combine en un seul diagramme (sous forme de sous - Diagramme)
/etc/bash_completion.d目录作用(用户登录立刻执行该目录下脚本)
随机推荐
C语言 字符常量
兼容NSR20F30NXT5G的小体积肖特基二极管
[echart] Introduction to echart
A lifetime of needs, team collaboration can play this way on cloud nailing applet
【Echart】echart 入門
AWS EKS 部署要点以及控制台与eksctl创建的差异
QT program integration easyplayer RTSP streaming media player screen flicker what is the reason?
2020 is coming to an end, special and unforgettable.
Mysql---数据读写分离、多实例
AWS EKS添加集群用户或IAM角色
【论文阅读】【3d目标检测】point transformer
Installation of zynq platform cross compiler
[mapping program design] coordinate inverse artifact v1 0 (with C / C / VB source program)
IDE Idea 自动编译 与 On Upate Action 、 On Frame Deactivation 的配置
MySQL 2013 lost connection to MySQL server during query
Chlamydia infection -- causes, symptoms, treatment and Prevention
HMS Core Discovery第14期回顾长文|纵享丝滑剪辑,释放视频创作力
KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
229. 求众数 II
A new method for evaluating the quality of metagenome assembly - magista