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

网站怎么做赚钱网站怎么做图片动态

网站怎么做赚钱,网站怎么做图片动态,做电脑图标的网站,惠州做网站乐云seo轻松上线问题 SpringBoot 启动后 ,VS Code 报错 Failed to refresh live data from process ****。 现场是,SpringBoot 项目启动时,VS Code 将进行如下刷新,图片如下所示 当刷新 10 次以后,如果还是失败,则会抛出…

问题

SpringBoot 启动后 ,VS Code 报错 Failed to refresh live data from process ****

现场是,SpringBoot 项目启动时,VS Code 将进行如下刷新,图片如下所示
在这里插入图片描述
当刷新 10 次以后,如果还是失败,则会抛出如下错误。
在这里插入图片描述

注意: 该问题并不影响程序运行

分析

看到 IDE 报错,总是让人很不舒服,总想解决该问题。那么是 live data ,是什么导致刷新它失败呢?

live data 指正在运行 spring 进程中的数据,包括但不限于线程、bean 等实时信息。它的出现和 Spring 官方 IDE 相关。使用它,开发人员可以方便的观察 Spring 容器中的信息。原文如下:

The Spring Tools 4 can connect to running Spring processes to visualize internal information of those running Spring processes inline with your source code. This allows you to see, for example, which beans have bean created at runtime, how they are wired, and more.

The Spring Tools 4 shows hints by highlighting sections of source code with a light green background. Hovering over the highlights with the mouse pointer, data from the running app is displayed in a popup.

解决

上文引用的内容源自 Live-Application-Information ,其中也阐述到解决问题的方法:

For some types of information, Spring Tools 4 may also show a ‘quick summary’ as a codelens. Codelenses are supported in Eclipse, VS Code and Theia. For Eclipse this has to be enabled via Preferences >> Language Servers >> Spring Language Servers >> Spring Boot Language Server.

引文指出,Eclipse, VS Code 、Theia 等编辑器都支持该功能,同时给出了 Eclipse 管理 Live-Application-Information 功能的方法,即 Preferences >> Language Servers >> Spring Language Servers >> Spring Boot Language Server

VS Code 解决方案
根据 Live-Application-Information 介绍。VS Code 有两种方法可以解决 Failed to refresh live data from process **** 的问题。

1、引入依赖

Live information is scraped from running apps using JMX to connect to Spring Boot Actuator Endpoints. This means that must be added as a dependency to your application and enabled. The easiest way to accomplish this is to add the dependency to your application’s or as explained here.spring-boot-actuatorspring-boot-actuator-starterpom.xmlbuild.gradle

根据原文,可以引入依赖解决上述问题。依赖如下:

	<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency>

2、设置关闭 Live-information 相关设置

打开设置》搜索 live ,在扩展插件(Ectensions)中找到 Boot-Java Configuration ,将 Live-Information 选项去除勾选。步骤如下图所示:

在这里插入图片描述

注意!!! 上图中没有去除,应该去掉勾选!!!

总结

Failed to refresh live data from process **** 是由 Spring 扩展引起的,该问题并不影响程序的启动、运行,可以忽略不管。当然,该问题是可以解决的,Eclipse 可以使用官方给出的方法尝试,VS Code 可以使用本文提供的方法。 IDEA 或 其他 IDE 可以类比这些解决方案来解决。

http://www.yayakq.cn/news/466592/

相关文章:

  • 西安网站建设聂卫阿里巴巴运营免费教程
  • 艺术视频手机网站可以做吗在线免费开网站
  • 云速成美站做网站好吗那可以做网站
  • 网站开发还需要兼ie吗如何获取网站是哪个公司制作
  • 网站建设模块是什么意思WordPress图片类源码
  • 网站开发的话术厦门网站建设手机
  • 企业免费网站推广公司qq在线登录聊天
  • 高端大气的的网站学校网络推广方案
  • 自己做网站最新视频教程江门做公司网站
  • 兴义网站seoui培训基地
  • 预付的网站开发费用怎么入账校园门户网站系统建设关键技术
  • 做网站看百度脸色新乐网站建设
  • 台州市建设工程质量检测中心网站视觉营销网站建设规划分析
  • 织梦cms网站模板网站建设艾瑞市场分析
  • 口碑好的宜昌网站建设有空间与域名 怎么做网站
  • 单页网站如何做国外互联网科技网站
  • 搭建广告网站费用网站设计在线crm系统
  • 建一个定制网站要多少钱wordpress 手机加载慢
  • 微网站什么意思语音app开发公司
  • 乐清市建设路小学网站广州大型网站设计公司
  • 网站百度地图代码在虚拟机中如何做二级域名网站
  • 太原百度网站快速优化做网站最主要是那个一类商标
  • 临沂网站开发多少钱怎么搭建免费网站
  • 网站开发主管岗位说明wordpress调用自定义类型文章
  • 怎么做网站搜索两耳清风怎么做网站
  • 技术支持 石家庄网站建设模版ppt
  • 网站建设网站制作价格外贸网站seo
  • 自建网站做外贸网站seo优化培训
  • 潍坊 网站企划服装店网页设计素材
  • 网站建设精英南宁区建设银行招聘网站