# Dapr Configuration API In this quickstart, you'll create a microservice which makes use of Dapr's Configuration API. Configuration items are key/value pairs containing configuration data such as app ids, partition keys, database names etc. The service gets configuration items from the configuration store and subscribes for configuration updates. Visit [this](https://docs.dapr.io/developing-applications/building-blocks/configuration/) link for more information about Dapr and Configuration API. > **Note:** This example leverages HTTP `requests` only. If you are looking for the example using the Dapr Client SDK (recommended) [click here](../sdk/). This quickstart includes one service: - Java service `order-processor` ## Prerequisites - [Maven 3.x](https://maven.apache.org/install.html) - Java JDK 17 (or greater): - [Microsoft JDK 17](https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17) - [Oracle JDK 17](https://www.oracle.com/java/technologies/downloads/?er=221886#java17) - [OpenJDK 17](https://jdk.java.net/17/) - Locally running redis container - a redis container named `dapr_redis` is automatically created when you run `dapr init` ## Add configuration items to the config store - Open a new terminal and set values for config items `orderId1` and `orderId2` by using the command below ```bash docker exec dapr_redis redis-cli MSET orderId1 "101" orderId2 "102" ``` ## Build the Java file ```bash cd ./order-processor mvn clean install ``` ## Run order-processor 1. Navigate to `order-processor` directory. 2. Run the service app with Dapr. ```bash cd ./order-processor dapr run --app-id order-processor --app-port 6001 --resources-path ../../../components -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar ``` ## (Optional) Update value of config items 1. Keep the `order-processor` app running and open a separate terminal 2. Change the values of `orderId1` and `orderId2` using the command below 3. `order-processor` app gets the updated values of config items ```bash docker exec dapr_redis redis-cli MSET orderId1 "103" orderId2 "104" ```