PY59Y
PY59Y

Reputation: 11

what should I do when springboot throw "IllegalArgumentException" after imported open-feign

I was trying to build a gateway based on microservice, and the project failed to run after I imported open-feign version 4.0.1, I didn't add any annoation related to openFeign in my project yet. I'm using java8 and jdk1.8,springboot2.7.10, springcloud2021.0.4. I used java 21 to build this project in IDEA, and changed it to java8 in "setting" later

IllegalArgumentException: Cannot instantiate interface org.springframework.boot.BootstrapRegistryInitializer : org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer

Caused by: java.lang.UnsupportedClassVersionError: org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

I want to fix this problem and run open-feign services properly

Upvotes: 0

Views: 87

Answers (0)

Related Questions