Feature Toggles for Spring Boot applications with IBM Cloud App Configuration

Setup the IBM Cloud App Configuration instance

Create and Setup the IBM Cloud App Configuration service instance by following the steps here & here

Integrate Spring Boot application with IBM Cloud App Configuration

Define the App Configuration instance details in the application.yml file.

Run the application

Now you are all set to run the application. Open the application in the browser using http://localhost:8080. Since the feature flags are disabled initially, none of features are released. Enable the features in App Configuration dashboard to view the sections.

Conclusion

In this tutorial we used @ConfigurationProperties of Spring Boot to integrate with IBM Cloud App Configuration and released features only to a subset of users.

Resources

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store