Skip navigation links

Azure SDK for Java Reference Documentation

Current version is 2.7.0, click here for the index

Azure Spring cloud AutoConfigure client library for Java

See: Description

Packages 
Package Description
com.azure.spring.cloud.autoconfigure.cache
Package com.azure.spring.cloud.autoconfigure.cache;
com.azure.spring.cloud.autoconfigure.cloudfoundry
Package com.azure.spring.cloud.autoconfigure.cloudfoundry;
com.azure.spring.cloud.autoconfigure.eventhub
Package com.azure.spring.cloud.autoconfigure.eventhub;
com.azure.spring.cloud.autoconfigure.servicebus
Package com.azure.spring.cloud.autoconfigure.servicebus;
Current version is 2.7.0, click here for the index

Azure Spring cloud AutoConfigure client library for Java

This package is for Spring Cloud Starters of Azure services. It helps Spring Cloud developers to adopt Azure services.

Source code | Package (Maven) | API reference documentation

Getting started

Prerequisites

Include the Package

  1. [Add azure-spring-cloud-dependencies].
  2. Add dependency. <version> can be skipped because we already add azure-spring-cloud-dependencies.
<dependency>
  <groupId>com.azure.spring</groupId>
  <artifactId>azure-spring-cloud-autoconfigure</artifactId>
</dependency>

Key concepts

This project provides auto-configuration for the following Azure services:

Examples

The following section provides sample projects illustrating how to use the Azure Spring Cloud starters.

More sample code

Troubleshooting

Enable client logging

Azure SDKs for Java offers a consistent logging story to help aid in troubleshooting application errors and expedite their resolution. The logs produced will capture the flow of an application before reaching the terminal state to help locate the root issue. View the logging wiki for guidance about enabling logging.

Enable Spring logging

Spring allow all the supported logging systems to set logger levels set in the Spring Environment (for example, in application.properties) by using logging.level.<logger-name>=<level> where level is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF. The root logger can be configured by using logging.level.root.

The following example shows potential logging settings in application.properties:

logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR

For more information about setting logging in spring, please refer to the official doc.

Next steps

The following section provides sample projects illustrating how to use the Azure Spring Cloud starters.

More sample code

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.microsoft.com.

Please follow instructions here to build from source or contribute.

Skip navigation links
Visit the Azure for Java Developerssite for more Java documentation, including quick starts, tutorials, and code samples.

Copyright © 2021 Microsoft Corporation. All rights reserved.