From 1d198e530e872486cd898cfe97881476d555c491 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Mon, 20 Oct 2025 09:08:53 +0800 Subject: [PATCH 1/8] Update project version to 2.0.0-SNAPSHOT Bumps the revision property in pom.xml from 0.2.3-SNAPSHOT to 2.0.0-SNAPSHOT to begin development for the next major release. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2f0f89da..14c15174 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ - 0.2.3-SNAPSHOT + 2.0.0-SNAPSHOT 17 From 96e12233e176daad0c99fa3e4d45962d1418fe86 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Thu, 23 Oct 2025 13:48:36 +0800 Subject: [PATCH 2/8] Refactor SpringBootTest webEnvironment import usage Replaces explicit enum reference with static import for SpringBootTest.WebEnvironment.NONE in ActuatorAutoConfigurationTest. This improves code readability and consistency. --- .../actuate/autoconfigure/ActuatorAutoConfigurationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorAutoConfigurationTest.java b/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorAutoConfigurationTest.java index 2ab862ec..74e96560 100644 --- a/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorAutoConfigurationTest.java +++ b/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorAutoConfigurationTest.java @@ -25,6 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.NONE; /** * {@link ActuatorAutoConfiguration} Test @@ -34,7 +35,7 @@ * @since 1.0.0 */ @SpringBootTest( - webEnvironment = SpringBootTest.WebEnvironment.NONE, + webEnvironment = NONE, classes = { ActuatorAutoConfigurationTest.class }, properties = { From fa56e84cf33a25a9e1fec6ff9b58491fd8077061 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Thu, 23 Oct 2025 13:48:41 +0800 Subject: [PATCH 3/8] Refactor SpringBootTest webEnvironment import usage Replaces direct reference to SpringBootTest.WebEnvironment.RANDOM_PORT with static import RANDOM_PORT in ActuatorEndpointsAutoConfigurationTest for improved readability. --- .../autoconfigure/ActuatorEndpointsAutoConfigurationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorEndpointsAutoConfigurationTest.java b/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorEndpointsAutoConfigurationTest.java index de99a64b..29617e0b 100644 --- a/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorEndpointsAutoConfigurationTest.java +++ b/microsphere-spring-boot-actuator/src/test/java/io/microsphere/spring/boot/actuate/autoconfigure/ActuatorEndpointsAutoConfigurationTest.java @@ -18,6 +18,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.springframework.boot.WebApplicationType.SERVLET; +import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT; /** * {@link ActuatorEndpointsAutoConfiguration} Test @@ -27,7 +28,7 @@ * @since 1.0.0 */ @SpringBootTest( - webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, + webEnvironment = RANDOM_PORT, classes = { ActuatorEndpointsAutoConfigurationTest.class, }, From fb674966ec8e360eab302502540d473aa29e13de Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Thu, 23 Oct 2025 13:48:46 +0800 Subject: [PATCH 4/8] Refactor SpringBootTest webEnvironment usage Replaces explicit enum reference with static import for RANDOM_PORT in SpringBootTest annotation to improve code readability. --- .../boot/autoconfigure/ApplicationAutoConfigurationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/microsphere-spring-boot-core/src/test/java/io/microsphere/spring/boot/autoconfigure/ApplicationAutoConfigurationTest.java b/microsphere-spring-boot-core/src/test/java/io/microsphere/spring/boot/autoconfigure/ApplicationAutoConfigurationTest.java index 74ad4489..98995bf1 100644 --- a/microsphere-spring-boot-core/src/test/java/io/microsphere/spring/boot/autoconfigure/ApplicationAutoConfigurationTest.java +++ b/microsphere-spring-boot-core/src/test/java/io/microsphere/spring/boot/autoconfigure/ApplicationAutoConfigurationTest.java @@ -28,6 +28,8 @@ import java.util.List; +import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT; + /** * Application AutoConfiguration Test * @@ -44,7 +46,7 @@ "spring.mvc.format.date=dd/MM/yyyy", "logging.level.io.microsphere.spring=DEBUG" }, - webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) + webEnvironment = RANDOM_PORT) @EnableAutoConfiguration class ApplicationAutoConfigurationTest { From ba5358fbf8a00e39b773ac6586ec2579783e27bc Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Mon, 27 Oct 2025 15:11:29 +0800 Subject: [PATCH 5/8] Update dependency versions in parent POM Bumped microsphere-spring to 0.2.4, spring-boot 3.4 profile to 3.4.11, and default spring-boot to 3.5.7 for improved compatibility and latest fixes. --- microsphere-spring-boot-parent/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microsphere-spring-boot-parent/pom.xml b/microsphere-spring-boot-parent/pom.xml index c4ea5476..45416e64 100644 --- a/microsphere-spring-boot-parent/pom.xml +++ b/microsphere-spring-boot-parent/pom.xml @@ -19,7 +19,7 @@ Microsphere Spring Boot Parent - 0.2.3 + 0.2.4 1.7.2 @@ -77,7 +77,7 @@ spring-boot-3.4 - 3.4.10 + 3.4.11 @@ -87,7 +87,7 @@ true - 3.5.6 + 3.5.7 From 84e4075e3b7f3f6024e0dd1d337934b967eb0913 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Mon, 27 Oct 2025 15:11:34 +0800 Subject: [PATCH 6/8] Update parent pom version to 0.2.2 Bumped the microsphere-build parent POM version from 0.2.1 to 0.2.2 to use the latest build configuration and dependencies. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 14c15174..c0c1d57e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.github.microsphere-projects microsphere-build - 0.2.1 + 0.2.2 4.0.0 From 7ef8c1b42d9bf84775c73fd3cf5a685818092045 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Mon, 27 Oct 2025 15:16:09 +0800 Subject: [PATCH 7/8] Update project version to 0.2.4-SNAPSHOT Changed the property in pom.xml from 2.0.0-SNAPSHOT to 0.2.4-SNAPSHOT to reflect the new development version. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c0c1d57e..7d878189 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ - 2.0.0-SNAPSHOT + 0.2.4-SNAPSHOT 17 From 390715a103b9a9b6295bf38def41c48a9411aded Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Mon, 27 Oct 2025 15:21:54 +0800 Subject: [PATCH 8/8] Update latest version numbers in README Bump the displayed latest versions for branches 0.2.x and 0.1.x in the README to 0.2.4 and 0.1.4, respectively. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19735de7..879c6144 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ pom.xml: | **Branches** | **Purpose** | **Latest Version** | |--------------|-------------------------------------------|--------------------| -| **0.2.x** | Compatible with Spring Boot 3.0.x - 3.5.x | 0.2.2 | -| **0.1.x** | Compatible with Spring Boot 2.0.x - 2.7.x | 0.1.2 | +| **0.2.x** | Compatible with Spring Boot 3.0.x - 3.5.x | 0.2.4 | +| **0.1.x** | Compatible with Spring Boot 2.0.x - 2.7.x | 0.1.4 | Then add the specific modules you need: