question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Add Spring Cloud Azure starter when users choose MySQL/PostgreSQL and Azure on Spring Initializer

See original GitHub issue

Is your feature request related to a problem? Please describe.

We now have two Spring starters for supporting AAD authentication:

  • spring-cloud-azure-starter-jdbc-mysql
  • spring-cloud-azure-starter-jdbc-postgresql

We should add these two starters when users choose MySQL/PostgreSQL Driver + Azure Support on Spring Initializer:

Scene 1: choose MySQL Driver + Azure Support

  1. Status quo:

Currently, when the user selects MySQL Driver and Azure Support in the Spring Initializer:

1.1 The generated pom.xml will contain the following:

    <dependency>
      <groupId>com.azure.spring</groupId>
      <artifactId>spring-cloud-azure-starter</artifactId>
    </dependency>

    <dependency>
      <groupId>com.mysql</groupId>
      <artifactId>mysql-connector</artifactId>
      <scope>runtime</scope>
    </dependency>

1.2 The contents of HELP.md are as follows:

image
  1. Goal

When the user selects MySQL Driver and Azure Support in the Spring Initializer:

2.1 The generated pom.xml will contain the following:

 <dependency>
     <groupId>com.azure.spring</groupId>
     <artifactId>spring-cloud-azure-starter-jdbc-mysql</artifactId>
 </dependency>

2.2 Include a link to the Azure MySQL reference documentation in the Reference Documentation section of HELP.md.

Scene 2: choose PostgreSQL Driver + Azure Support

  1. Status quo:

    Currently, when the user selects PostgreSQL Driver and Azure Support in the Spring Initializer:

    1.1 The generated pom.xml will contain the following:

        <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-starter</artifactId>
        </dependency>
    
       <dependency>
           <groupId>org.postgresql</groupId>
           <artifactId>postgresql</artifactId>
           <scope>runtime</scope>
       </dependency>
    

    1.2 The contents of HELP.md are as follows:

    image
  2. Goal

    When the user selects PostgreSQL Driver and Azure Support in the Spring Initializer:

    2.1 The generated pom.xml will contain the following:

     <dependency>
         <groupId>com.azure.spring</groupId>
        <artifactId>spring-cloud-azure-starter-jdbc-postgresql</artifactId>
     </dependency>
    

    2.2 Add a link to the Azure PostgreSQL reference documentation in the Reference Documentation section of HELP.md.

Describe the solution you’d like

Create a PR to https://github.com/spring-io/start.spring.io to enable this feature.

Describe alternatives you’ve considered

N/A

Additional context N/A

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stliucommented, Dec 9, 2022

When the user selects PostgreSQL Driver and Azure Support in the Spring Initializer:

2.1 The generated pom.xml will contain the following:

<dependency> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-jdbc-postgresql</artifactId> </dependency> spring-cloud-azure-starter and postgresql will be removed from pom.xml, they are already contained in spring-cloud-azure-starter-jdbc-postgresql.

NO, this is not correct, we should just add the dependency spring-cloud-azure-starter-jdbc-postgresql when that two dependencies are chosen, DO NOT remove anything from the pom

0reactions
hui1110commented, Dec 10, 2022

Closed this as completed in 9d2e80c .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot Starters for Azure | Microsoft Learn
This article describes the various Spring Boot Starters for the Spring Initializr that provide Java developers with integration features for ...
Read more >
Spring Boot Starter for Azure Active Directory developer's guide
This guide describes the features, issues, workarounds, and diagnostic steps to be aware of when you use the Azure Active Directory starter.
Read more >
How to use the Spring Boot Starter with Azure Cosmos DB for ...
Learn how to configure an application created with the Spring Boot Initializer with Azure Cosmos DB for NoSQL.
Read more >
Spring Cloud for Azure starter App Configuration client library ...
Azure App Configuration provides a service to centrally manage application settings and feature flags. Modern programs, especially programs ...
Read more >
Use the Spring Boot Starter for Azure Active Directory B2C
This article demonstrates creating a Java app with the Spring Initializr that uses the Spring Boot Starter for Azure Active Directory (Azure AD) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found