我是靠谱客的博主 安详钢铁侠,这篇文章主要介绍Springboot 入门级排错java.lang.IllegalStateException: Failed to introspect Class,现在分享给大家,希望可以做个参考。
通过java -jar 启动springboot 时报错
ConfigServletWebServerApplicationContext :
Exception encountered during context initialization
- cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.boot.autoconfigure.hazelcast.HazelcastClientConfiguration': Lookup method resolution failed; nested exception is
java.lang.IllegalStateException: Failed to introspect Class
[org.springframework.boot.autoconfigure.hazelcast.HazelcastClientConfiguration] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@3d646c37]
通过google 发现可能是 springboot 包版本兼容问题,通过降低springboot 版本从2.6.4 snapshot 到2.2.1 release 从而解决该问题。
最后
以上就是安详钢铁侠最近收集整理的关于Springboot 入门级排错java.lang.IllegalStateException: Failed to introspect Class的全部内容,更多相关Springboot内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复