Giter Site home page Giter Site logo

donggeo / azure-springaop-appconfig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/azure-springaop-appconfig

0.0 0.0 0.0 9 KB

This project demonstrates how to connect and use Azure App Config from a Java Spring AOP Application

License: MIT License

Java 100.00%

azure-springaop-appconfig's Introduction

page_type languages products description urlFragment
sample
java
Azure
Azure App configuration
This project demonstrates how to connect and use app config from a spring aop application

Official Microsoft Sample

Give a short description for your sample here. What does it do and why is it important?

Contents

Outline the file contents of the repository. It helps users navigate the codebase, build configuration and any related assets.

File/folder Description
src Sample source code.
.gitignore Define what to ignore at commit time.
CHANGELOG.md List of changes to the sample.
CONTRIBUTING.md Guidelines for contributing to the sample.
README.md This README file.
LICENSE The license for the sample.

Prerequisites

Outline the required components and tools that a user might need to have on their machine in order to run the sample. This can be anything from frameworks, SDKs, OS versions or IDE releases.

How to run this sample

Working installation of Java and Maven An Internet connection

Step 1: Download Java (8 and above) for your platform To successfully use this sample, you need a working installation of Java and Maven.

Step 2: Clone or download this repository
From your shell or command line:

git clone https://github.com/Azure-Samples/azure-springaop-appconfig.git
cd azure-springaop-appconfig

Step 3:
To create a new App Configuration store, sign in to the Azure Portal . In the upper-left corner of the pane, select +Create a resource
Select App Configuration from the search results, and then select Create.
On the App Configuration > Create pane -> Enter Resource Name, Resource Group, Subscription, Location
Once the App Config is created - Goto Access Keys and note ConnectionString - this will be needed later
Select Create. The deployment might take a few minutes to finish.
After the deployment is finished, select Settings > Access Keys.
Make a note of either the primary read-only or primary read-write key connection string.
You'll use this connection string later to configure your application to communicate with the App Configuration store that you created.

Step 4: Goto TestAOP file
Update the connectionString that was noted earlier
mvn clean package
Run TestAOP
This prints the value of the key set as in this case "keyString"

Key concepts

https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview

What is Azure App Config?
Azure App Configuration provides a service to centrally manage application settings and feature flags. Modern programs, especially programs running in a cloud, generally have many components that are distributed in nature

App Configuration complements Azure Key Vault, which is used to store application secrets.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azure-springaop-appconfig's People

Contributors

jyotsnaravikumar avatar microsoftopensource avatar msftgits avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.