具体问题
在IDEA运行SpringBoot项目,可以正常运行但是切换到Actuator标签 (旧版IDEA是Endpoints)查看SpringBoot应用的状态信息时就会出现下面的提示:
Failed to check application ready state:AttachProvider for the vm is not found. Press Refresh button
to reinit ready state checking
并目在SpringBoot项目运行过程中IDEA的Event log中会一直出现 Failed to retrieve application
IMX service URL
问题原因
在百度搜索出的原因就是: IDEA和Springboot 项目没有在同一JVM 环境下运行,使得IDEA不能连接到这个AttachProvider
解决方案
将C:Users(usernameAppData LocalTemp\hsperfdata_fusername)这个文件删掉,username代表操作系统的用户名。