microsoft / azure-spring-apps-training

Guides and tutorials to make the most out of Azure Spring Apps
MIT License
431 stars 284 forks source link

Update Spring Boot Version and Adjust Dependencies #184

Open tacu90 opened 3 months ago

tacu90 commented 3 months ago

Summary

This pull request addresses issues related to outdated Spring Boot version and incorrect dependencies in the Spring initializer commands.

Changes Made

  1. Update Spring Boot Version:

    • The commands previously used Spring Boot version 3.1.3, which is no longer available on start.spring.io.
    • Updated the Spring Boot version to 3.3.2.
    curl https://start.spring.io/starter.tgz -d type=maven-project -d dependencies=web -d baseDir=simple-microservice -d bootVersion=3.3.2 -d javaVersion=17 | tar -xzvf -
  2. Adjust Dependency for Cloud Gateway:

    • Changed the dependency from cloud-gateway to cloud-gateway-reactive.
    • The cloud-gateway dependency was incorrectly loading spring-cloud-starter-gateway-mvc instead of spring-cloud-starter-gateway, causing mismatches in application.yml and gateway malfunctions.
    <dependency>
       <groupId>org.springframework.cloud</groupId>
       <artifactId>spring-cloud-starter-gateway</artifactId>
    </dependency>

Reason for Changes

Please review these changes and let me know if any further adjustments are needed. Thank you!