- Notifications
You must be signed in to change notification settings - Fork282
Open
Description
I have below method for creating bean of ff4j which call ff4j service. After the sprinboot upgrade it is giving me the Linkage Error issue with ClassCastException. I have used ff4j-spring-boot-starter-webmvc and don't see FeatureStoreHttp, PropertyStoreHttp in the dependency. can you please tell me how I can change code below for bean to be created without any error. Also I removed the ff4j-webapi-jersey2x dependency which I was using earlier.
@Beanpublic FF4j ff4jClient() {FF4j ff4jClient = new FF4j();if (configurableEnvironment.acceptsProfiles(Profiles.of("aws")) || !featureFlagIsInMemoryServer) {//TODO: To be fixed as ff4j-webapi-jersey2x dependency causing ClassCastException after Java17 & Springboot Upgrade.ff4jClient.setFeatureStore(new FeatureStoreHttp(featureFlagApiUrl + "/ff4j", featureFlagAdminApiKey));ff4jClient.setPropertiesStore(new PropertyStoreHttp(featureFlagApiUrl + "/ff4j", featureFlagAdminApiKey));} else {ff4jClient.setFeatureStore(new InMemoryFeatureStore());ff4jClient.setPropertiesStore(new InMemoryPropertyStore());}populateFeatureFlags(ff4jClient, false);return ff4jClient;}
Metadata
Metadata
Assignees
Labels
No labels