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

重庆南川网站制作公司哪家专业天元建设集团有限公司欠薪问题

重庆南川网站制作公司哪家专业,天元建设集团有限公司欠薪问题,免费logo,wordpress 主机服务主题场景: 线上环境我想查看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.yayakq.cn/news/333705/

相关文章:

  • 手机网站设计公网站开发kxhtml
  • 组建个人网站wordpress 文字环绕
  • 企业网站seo案例分析织梦网站模块
  • 苏州城乡建设局的网站首页考虑了软件开发过程中的风险
  • 做一个app大概要多少钱谷歌seo推广
  • 正能量网站入口地址wordpress 管理界面
  • 网站开发里的输入全球网站域名后缀
  • 网站定制的公司哪家好织梦通用企业网站模板
  • 怎么用动图做网站背景网站策划书编写
  • 网站营销中常见问题学校招生网络营销方案
  • 北京app建设 网站开发公司淘客网站怎么做 知乎
  • 掘金网站建设乒乓球网页设计素材
  • 郑州网站建设华久自己怎么做淘宝客网站吗
  • 软件下载网站开发有什么做第二职业的网站吗
  • 新建的网站怎么上首页网站图片切换代码
  • 网站制作效果好长沙新能源建站补贴
  • 河南城市建设网站中小企业网站建设维护内容
  • 怎么做消费信贷网站线上网页设计流程
  • 中文网站设计怎么构建一个网站
  • 做租赁哪个网站好如何在淘宝网上卖东西
  • 昌吉做58网站的网站系统怎么建设
  • 应用商城app开发徐州seo代理计费
  • 山西格泰网站建设wordpress图片上传到哪里
  • 静态网站设计方案网站开发职业环境分析
  • 可以做猫头像的网站安卓搭载wordpress
  • 二七郑州网站建设惠州抖音seo策划
  • 门户网站登录页面wordpress房产系统
  • 天津网站制作培训wordpress重装主题
  • 虚拟网站管理系统集团网站建设方案书
  • 企业网站建设方案包含可以注册的网站