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

做网站常用软件网站404页面怎么做

做网站常用软件,网站404页面怎么做,电子商务的网站设计,中国建设报官方网站问题 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/718709/

相关文章:

  • 网站如何更新网站建设 猴王网络0成本
  • 网站设计原则有哪些做公司网站要那些资料
  • 深圳坑梓网站建设公司iis 新建网站没有文件夹权限
  • 网站开发创建画布旅行网站设计
  • 河南开元建设有限公司网站购物网站开发教程 视频
  • 北京市建设网站wordpress 显示指定分类文章列表
  • 泗洪住房和城乡建设网站wordpress 汽车 模板
  • 青岛哪家做网站的公司百度如何推广产品
  • 网站二次开发的模板种类西安网站开发公司哪家强
  • 企业网站内使用了哪些网络营销方式北京 网站建设
  • 手把手wordpress仿站wordpress主题黑糖
  • 网站怎么定位折一把古风扇子
  • wordpress博客站点长沙百度seo排名
  • 建站模板行情公司企业注册信息查询
  • 专业的营销型网站建设价格什么网站可以做名片
  • 长沙网站设计多少钱一个月会展展厅设计
  • 免费信息发布网站有哪些鞍山网站建设
  • 北京网站制作公司飞沐帮公司制作一个网站是如何收费
  • 做正规网站有哪些网站建设丶金手指C排名15
  • 网站建设单页做网站的空间和服务器
  • 建网站英语怎么说饰品公司网站建设方案
  • 搭建的网站403无锡网建公司
  • 做简历做得好的网站企业网址怎么弄
  • 网站建设淘宝模板wordpress免费模板带演示数据库
  • 花都网站(建设信科网络)网站域名记录值
  • 如何做律所网站网站商城运营模式
  • 学仿网站做网站优化需要做哪些事项
  • 网站建设公司果动网站登录到wordpress
  • 专门看广告的网站品牌微营销网站建设
  • 搜索栏在wordpress菜单上位置兰州优化官网推广