From da41123f99f51f910db1468645ad8bf28bdd76a8 Mon Sep 17 00:00:00 2001 From: kaiqianyang Date: Mon, 14 Aug 2023 12:39:32 +0800 Subject: [PATCH] avoid potential concurrent issue --- ...boot-to-azure-restricted-config.windup.xml | 43 ++----------------- .../application.properties | 1 - ...to-azure-restricted-config.windup.test.xml | 2 +- 3 files changed, 5 insertions(+), 41 deletions(-) diff --git a/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-restricted-config.windup.xml b/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-restricted-config.windup.xml index 7de4063d7..619156ad1 100644 --- a/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-restricted-config.windup.xml +++ b/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-restricted-config.windup.xml @@ -17,16 +17,7 @@ - - - - - - - - - - + @@ -37,6 +28,7 @@ Please remove them from your application, including configuration files, config server files, command line parameters, Java system attributes, and environment variables. If configured in **configuration files**: they will be ignored and overrided by Azure Spring Apps. + If configured in **Config Server files**, **command line parameters**, **Java system attribute**, **environment variable**: they need to be removed or you might experience conflicts and unexpected behavior. @@ -47,35 +39,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-restricted-config/application.properties b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-restricted-config/application.properties index 65b78487a..0e5462a63 100644 --- a/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-restricted-config/application.properties +++ b/rules/rules-reviewed/azure/springboot/tests/data/spring-boot-to-azure-restricted-config/application.properties @@ -1,5 +1,4 @@ eureka.instance.preferIpAddress = true -eureka.instance.instance-id = ${spring.cloud.client.ip-address}:${server.port} server.port = 8761 spring.cloud.config.tls.keystore = classpath:configserver.jks spring.config.import = configserver:http://localhost:8888 diff --git a/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-restricted-config.windup.test.xml b/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-restricted-config.windup.test.xml index cbb428810..571007bb9 100644 --- a/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-restricted-config.windup.test.xml +++ b/rules/rules-reviewed/azure/springboot/tests/spring-boot-to-azure-restricted-config.windup.test.xml @@ -11,7 +11,7 @@ - +