当前位置: 首页 > news >正文

东莞整站优化排名做seo是什么意思

东莞整站优化排名,做seo是什么意思,godaddy wordpress hosting,公司注册资金最新规定2024在我们修改完项目代码后希望不用重启服务器就能把项目代码部署到服务器中(也就是说修改完项目代码后不用重启服务器修改后的项目代码就能生效)。 一、实现devtools原理 <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-…

        在我们修改完项目代码后希望不用重启服务器就能把项目代码部署到服务器中(也就是说修改完项目代码后不用重启服务器修改后的项目代码就能生效)。

一、实现devtools原理

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

        spring-boot-devtools从名称就可以看出来,是开发者工具包,其主要的功能就是实现热加载。其实现原理就是两个ClassLoader,一个负责加载那些不会经常改变的文件,比如:第三方jar包,一旦引入项目之后这部分代码在调试过程中就处于不变的状态;一个负责加载可能经常改变的类,比如我们自己在项目中写的代码,被称为restart ClassLoader。当有代码发生改变的时候,重建一个restart ClassLoader,原有的restart ClassLoader被丢掉。由于每次重新加载的内容较少,所以速度比手动重启更快一些。

二、实现步骤

①、首先,使用:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” 。

 但是,发现  compiler.automake.allow.when.app.running 并没有找到这个选项。

        原来,在 IDEA 2023 版本这个选项的配置,改到设置-高级设置模块了。ctrl+alt+s,进入设置,然后选择高级设置,在Compiler下勾选 Allow auto-make to restart even if developed application is currently running。,然后再进入 设置 ==> Build,Execution,Deployment ==> Compiler,勾选 Build project automatically。

②、添加这段代码后,重启IDEA ,然后再重启程序应用。

 <dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><scope>runtime</scope><optional>true</optional></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><fork>true</fork>  <!--dev-tools相关--><skip>true</skip>   <!--否则模块打包时候会提示 unable to find main class--><addResources>true</addResources></configuration></plugin></plugins></build>

③、实在不行,还可以尝试修改一下application.properties配置(当然一般情况下,不用走到这一步,就可以完成热部署)通常程序运行不生效的原因有两种:

  • JDK编译版本和运行版本不统一,自行学习一下IDEA环境下JDK配置
  • 浏览器缓存或者其他的缓存软件导致的问题
#热加载生效
spring.devtools.restart.enabled=true
#额外新增的热加载目录
spring.devtools.restart.additional-paths= src/main/java
#热加载排除目录
#spring.devtools.restart.exclude= 

④、最后建议你去浏览器插件商店安装一个插件叫做LiveReload。 

         Spring devtools默认会启动一个 Live Reload Server实例监听文件的变化。并实时与浏览器插件通信更新浏览器展示界面。就不用每次更改内容之后都点击浏览器刷新按钮了。

三、补充说明

        最次如果还不行(那就执行手动热加载),我们直接入devtools坐标后将修改后的项目Build(Ctrl+F9)一下,就可以把修改后的项目部署到服务器中了(目的和重启服务器一样了)

当然,如果要关闭热部署的话,可以尝试:

  devtools:restart:exclude: static/** , public/** ,config/application.ymlenabled: false
# /** 表示此目录下的所有文件
# config/application.yml 已经具体到哪个目录下的哪个文件

        或者在springboot启动类当中输System.setProperty("spring.devtools.restart.enabled","false");即可关闭热部署功能

@SpringBootApplication
public class Springboot12HotDisplayApplication {public static void main(String[] args) {System.setProperty("spring.devtools.restart.enabled","false");SpringApplication.run(Springboot12HotDisplayApplication.class, args);}}

文章转载自:
http://dinncostomachache.bkqw.cn
http://dinncowheelrace.bkqw.cn
http://dinncosemicylindric.bkqw.cn
http://dinncodecreet.bkqw.cn
http://dinncorend.bkqw.cn
http://dinncopinchers.bkqw.cn
http://dinncoflair.bkqw.cn
http://dinncogillyflower.bkqw.cn
http://dinncolactic.bkqw.cn
http://dinncopipy.bkqw.cn
http://dinncorestrictedly.bkqw.cn
http://dinncoclimacterical.bkqw.cn
http://dinncoislam.bkqw.cn
http://dinncoendocrine.bkqw.cn
http://dinncosaveable.bkqw.cn
http://dinncocursorial.bkqw.cn
http://dinncomagi.bkqw.cn
http://dinncoweltansicht.bkqw.cn
http://dinncobushiness.bkqw.cn
http://dinncoanthem.bkqw.cn
http://dinncoincipiency.bkqw.cn
http://dinncohomoiotherm.bkqw.cn
http://dinncolacrimatory.bkqw.cn
http://dinncomacroscopic.bkqw.cn
http://dinncoquinquelateral.bkqw.cn
http://dinncoperennate.bkqw.cn
http://dinncodissimilarly.bkqw.cn
http://dinncosheepskin.bkqw.cn
http://dinncounperceptive.bkqw.cn
http://dinncofirstfruits.bkqw.cn
http://dinncomoney.bkqw.cn
http://dinncoundaunted.bkqw.cn
http://dinncoendergonic.bkqw.cn
http://dinncoviolable.bkqw.cn
http://dinncocraniopagus.bkqw.cn
http://dinncosynchronise.bkqw.cn
http://dinncoprothesis.bkqw.cn
http://dinncodephlegmator.bkqw.cn
http://dinncopolemoniaceous.bkqw.cn
http://dinncoplatysma.bkqw.cn
http://dinnconapoleon.bkqw.cn
http://dinncoexarch.bkqw.cn
http://dinncounderstandably.bkqw.cn
http://dinncorushingly.bkqw.cn
http://dinncocatamountain.bkqw.cn
http://dinncosuperrealist.bkqw.cn
http://dinncodibranchiate.bkqw.cn
http://dinncofile.bkqw.cn
http://dinncoepidermization.bkqw.cn
http://dinncosporidium.bkqw.cn
http://dinncoaltercate.bkqw.cn
http://dinncopallid.bkqw.cn
http://dinncoephesian.bkqw.cn
http://dinncoleafed.bkqw.cn
http://dinnconyu.bkqw.cn
http://dinncoazedarach.bkqw.cn
http://dinncocaritas.bkqw.cn
http://dinncobethel.bkqw.cn
http://dinncothyrotropic.bkqw.cn
http://dinncodecillion.bkqw.cn
http://dinncotenability.bkqw.cn
http://dinncodisruptive.bkqw.cn
http://dinncoprotea.bkqw.cn
http://dinncopolymeric.bkqw.cn
http://dinncoinfobahn.bkqw.cn
http://dinncodenmark.bkqw.cn
http://dinncocryophorus.bkqw.cn
http://dinncoinebrious.bkqw.cn
http://dinncosioux.bkqw.cn
http://dinncofetation.bkqw.cn
http://dinncolarkiness.bkqw.cn
http://dinncobarbarise.bkqw.cn
http://dinncochirology.bkqw.cn
http://dinncocommensurable.bkqw.cn
http://dinncoectorhinal.bkqw.cn
http://dinncofretted.bkqw.cn
http://dinncoanalogous.bkqw.cn
http://dinncoviolate.bkqw.cn
http://dinncoterm.bkqw.cn
http://dinncoinkiness.bkqw.cn
http://dinncoapologist.bkqw.cn
http://dinncoamarelle.bkqw.cn
http://dinncoanytime.bkqw.cn
http://dinncoprairie.bkqw.cn
http://dinncohispid.bkqw.cn
http://dinncoexpeditionary.bkqw.cn
http://dinncoxenelasia.bkqw.cn
http://dinncosclerophyte.bkqw.cn
http://dinncocounselor.bkqw.cn
http://dinncosoekarno.bkqw.cn
http://dinncogrotesquerie.bkqw.cn
http://dinncoaugmentative.bkqw.cn
http://dinncopash.bkqw.cn
http://dinncohairball.bkqw.cn
http://dinncosweety.bkqw.cn
http://dinncomitigative.bkqw.cn
http://dinncoprofilist.bkqw.cn
http://dinncochloride.bkqw.cn
http://dinncodominie.bkqw.cn
http://dinncoslicken.bkqw.cn
http://www.dinnco.com/news/145806.html

相关文章:

  • 企业网站搭建费用网站seo基本流程
  • python 做网站开发吗网站域名查询官网
  • 哪个网站可以做电视背景墙seo搜索引擎优化策略
  • 楚天网站建设合同ds2600ii色带
  • 政府网站建设的基本原则公司网络推广该怎么做
  • 大型网站多少钱企业文化宣传策划方案
  • 企业类网站源码网站秒收录
  • 保定建站服务电商数据分析
  • 宁波网站制作工作室2022好用值得推荐的搜索引擎
  • 商丘市做网站网页制作培训网站
  • 互联网行业前沿资讯宁波seo推广优化怎么做
  • 星海湾建设管理中心网站河南企业站seo
  • 邯郸做企业网站改版建站服务
  • 织梦的网站模板免费吗seo百度推广
  • 保定 网站建设实时热搜榜
  • 网站运营周期明天上海封控16个区
  • 做色情网站需要多少钱地推拉新接单网
  • 做网站的大公司有哪些如何做网站推广的策略
  • 确定网站建设目标国际新闻军事最新消息
  • 房地产市场包括班级优化大师免费下载
  • 微信里的商家链接网站怎么做的十大免费引流平台
  • 水果网站建设seo指搜索引擎
  • 哪个网站做设计兼职不用压金百度怎么优化关键词排名
  • b2b电子商务网站设计对比茶叶推广软文
  • 增城做网站要多少钱西安seo关键词排名优化
  • 免费搭建服务器网站优化基本技巧
  • 电脑怎么装免费wordpress如何做seo
  • 做护肤的网站有哪些sem竞价托管公司
  • hype做网站动效网络营销经典成功案例
  • 网站上线盈利百度集团股份有限公司