Skip to content

Conversation

@mercyblitz
Copy link
Contributor

This pull request introduces a new shared module, microsphere-spring-cloud-gateway-commons, and performs a significant refactor to split the original gateway implementation into more modular components. The documentation and dependency management are updated accordingly to reflect these changes. Additionally, new configuration utilities and annotations are introduced to support advanced configuration and conditional bean registration for gateway features.

Module and Dependency Refactor

  • Introduced the new microsphere-spring-cloud-gateway-commons module as a shared dependency, and split the original microsphere-spring-cloud-gateway into microsphere-spring-cloud-gateway-commons and microsphere-spring-cloud-gateway-server-webflux for better modularization. Updated dependency management in microsphere-gateway-dependencies/pom.xml to include these modules. [1] [2]
  • Updated the documentation (README.md) to reflect the new module structure, revised artifact names, and updated JavaDoc and Maven dependency instructions. [1] [2] [3]

Configuration and Annotation Enhancements

  • Added utility and configuration classes in the new commons module: ConfigUtils, WebEndpointConfig, and WebEndpointConfigurationPropertiesBindHandlerAdvisor to centralize and validate web endpoint configuration for gateway routes. [1] [2] [3]
  • Introduced conditional annotations ConditionalOnMicrosphereGatewayEnabled and ConditionalOnMicrosphereWebEndpointMappingEnabled to simplify conditional bean registration based on gateway properties. [1] [2]

Bumped the displayed latest versions for branches 0.2.x and 0.1.x in the README to 0.2.1 and 0.1.1, respectively.
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 99.25094% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...webflux/filter/WebEndpointMappingGlobalFilter.java 99.04% 1 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ Complexity Δ
...ring/cloud/gateway/commons/config/ConfigUtils.java 100.00% <100.00%> (ø) 4.00 <4.00> (?)
...loud/gateway/commons/config/WebEndpointConfig.java 100.00% <100.00%> (ø) 3.00 <3.00> (?)
...ointConfigurationPropertiesBindHandlerAdvisor.java 100.00% <100.00%> (ø) 3.00 <3.00> (?)
...ebflux/autoconfigure/GatewayAutoConfiguration.java 100.00% <ø> (ø) 1.00 <0.00> (?)
...re/WebEndpointMappingGatewayAutoConfiguration.java 100.00% <100.00%> (ø) 2.00 <1.00> (?)
...text/WebEndpointApplicationContextInitializer.java 100.00% <100.00%> (ø) 2.00 <2.00> (?)
...HeartbeatEventRouteRefreshListenerInterceptor.java 100.00% <ø> (ø) 8.00 <0.00> (?)
...pagatingRefreshRoutesEventApplicationListener.java 100.00% <ø> (ø) 7.00 <0.00> (?)
...rver/webflux/filter/DefaultGatewayFilterChain.java 100.00% <ø> (ø) 4.00 <0.00> (?)
...er/webflux/handler/CachingFilteringWebHandler.java 100.00% <ø> (ø) 14.00 <0.00> (?)
... and 3 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mercyblitz mercyblitz merged commit 1d422b1 into release-1.x Nov 12, 2025
14 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants