Add cloud-2026-upgrade: step-by-step upgrade of the shop to Spring Boot 4.2.0 / Spring Cloud 2026.0.0, with probes
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.ankurm.upgrade</groupId>
|
||||
<artifactId>probe-gateway-webmvc</artifactId>
|
||||
<version>1.0.0</version>
|
||||
|
||||
<!-- The two version numbers are overridden from scripts/probe-gateway.sh, so one source tree runs on every train. -->
|
||||
<properties>
|
||||
<boot.version>4.2.0</boot.version>
|
||||
<cloud.version>2026.0.0</cloud.version>
|
||||
<maven.compiler.release>21</maven.compiler.release>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId>
|
||||
<version>${boot.version}</version><type>pom</type><scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${cloud.version}</version><type>pom</type><scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-gateway-server-webmvc</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><version>3.9.0</version>
|
||||
<executions><execution><phase>package</phase><goals><goal>copy-dependencies</goal></goals></execution></executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package com.ankurm.upgrade;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/** Nothing but the gateway; every route and switch is in application.yml or on the command line. */
|
||||
@SpringBootApplication
|
||||
public class GatewayProbeApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(GatewayProbeApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
server:
|
||||
port: 8090
|
||||
spring:
|
||||
application:
|
||||
name: probe-gateway-webmvc
|
||||
cloud:
|
||||
gateway:
|
||||
server:
|
||||
webmvc:
|
||||
routes:
|
||||
- id: headers
|
||||
uri: http://127.0.0.1:9091
|
||||
predicates:
|
||||
- Path=/headers
|
||||
Reference in New Issue
Block a user