通过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 从而解决该问题。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐