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

黄江网站建设南京seo优化培训

黄江网站建设,南京seo优化培训,如何给网站做备份,广州白云区疫情最新消息今天新增场景: 线上环境我想查看spring中容器某个对象的属性值 vmtool命令 方式一: vmtool --action getInstances -c [类加载器的hash] --className [目标类全路径] --limit 10 -x 2 实例:查询该类的全部属性情况(该类是一个spri…

场景:

线上环境我想查看spring中容器某个对象的属性值

vmtool命令

方式一:

 vmtool --action getInstances -c   [类加载器的hash]    --className  [目标类全路径]  --limit 10 -x 2

 实例:查询该类的全部属性情况(该类是一个spring中容器的对象,因此可以直接可以看到线上运行的属性值情况

 vmtool --action getInstances -c 7637f22   --className com.gisquest.cloud.oauth2.authentication.GisqAuthenticationSuccessHandler  --limit 10 -x 2

方式二:

语法:

 vmtool --action getInstances    -c [类加载器的hash] --className [org.springframework.web.context.WebApplicationContext]--express 'instances[0].getBean("对象名")' 

实例:查询spring容器中的某个对象

 vmtool --action getInstances    -c [ 7637f22] --className [org.springframework.web.context.WebApplicationContext]--express 'instances[0].getBean("gisqAuthenticationSuccessHandler")' 

语法:

 vmtool --action getInstances -c 7637f22   --className 【容器全路径】--express 'instances[0].getBean("实例对象名").【属性名】' 

实例:查询spring容器中的某个对象的某个属性值

 vmtool --action getInstances -c 7637f22   --className org.springframework.web.context.WebApplicationContext --express 'instances[0].getBean("gisqAuthenticationSuccessHandler").needUpdatePwdTime' 

可能遇到的问题 :

问题一:参照官网直接复制 org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named

  vmtool --action getInstances  --className org.springframework.context.ApplicationContext --express 'instances[0].getBean("gisqAuthenticationSuccessHandler")' 
Failed to execute ognl, exception message: ognl.MethodFailedException: Method "getBean" failed for object org.springframework.context.annotation.AnnotationConfigApplicationContext@91161c7, started on Tue Feb 07 11:08:21 CST 2023 [org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'gisqAuthenticationSuccessHandler' available], please check $HOME/logs/arthas/arthas.log for more details. 
[arthas@1]$ 

 原因:在实际的项目中往往是web容器,因此容器全类名需要根据实际情况改动。

 vmtool --action getInstances  --className org.springframework.web.context.WebApplicationContext --express 'instances[0].getBean("gisqAuthenticationSuccessHandler")' 

问题二:获取当前类是那个类加载器加载的

sc -d 【目标类】

 实例:

sc -d com.gisquest.cloud.oauth2.authentication.GisqAuthenticationSuccessHandler

http://www.tj-hxxt.cn/news/93449.html

相关文章:

  • 建设企业网站新闻开发的意义网络推广方法怎么样
  • wordpress安装模板提高seo排名
  • 如何免费建com的网站网络口碑营销案例
  • 禅城网站建设百度指数移动版
  • 虎门商城网站建设站长之家域名查询
  • 有哪些做汽配的网站谷歌google官网下载
  • 经营阅读网站需要怎么做seo词库排行
  • 医疗器械网站备案前置审批事例单页网站模板
  • 做网站找谁百度网盘登录入口官网
  • 免费领取手机网站开鲁seo服务
  • 做邪恶自拍小视频网站品牌营销策划是干嘛的
  • 厦门网站建设案例免费发seo外链平台
  • 合肥有哪些公司是做网站的软文广告是什么意思
  • 优化网站设计友情链接是免费的吗
  • 多少个网站semir是什么品牌
  • 网站建设优化服务特色网络营销的主要传播渠道
  • wordpress防站教程搜索引擎营销的主要方式有哪些?
  • 上海网站建设公司指南大数据精准营销获客
  • 网站建设咨询哪些方面谷歌网页版
  • 上海展厅seo网站设计工具
  • 万网网站备案管理香港头条新闻
  • 网站是如何制作的新东方考研培训机构官网
  • 深圳施工勘察建设局网站磁力狗在线
  • 网站开发建设方案书优化大师tv版
  • 网页制作网站受众群体分析品牌维护
  • 安阳网站制作哪家好沧州seo包年优化软件排名
  • 如何维护公司网站营销策略从哪几个方面分析
  • 网站轮播怎么做海南百度推广公司有哪些
  • 做临时工有哪些网站在线企业管理培训课程
  • 顺义建设工程交易中心网站做一个私人网站需要多少钱