Skip to content

Conversation

@mercyblitz
Copy link
Contributor

This pull request improves the handling of auto-configuration exclusions in Spring Boot by enhancing the ConfigurableAutoConfigurationImportFilter to support both comma-delimited and indexed property formats, refactoring the exclusion logic for greater flexibility, and updating associated tests to cover new scenarios. It also updates dependency versions and cleans up project metadata.

Auto-configuration exclusion enhancements

  • Refactored ConfigurableAutoConfigurationImportFilter to support exclusions defined as both comma-delimited strings and indexed properties (e.g., microsphere.autoconfigure.exclude[0]=...). This allows for more flexible configuration in Spring Boot environments. [1] [2]
  • Introduced use of Spring Boot's Binder API to retrieve exclusions from indexed properties, ensuring compatibility with modern property binding mechanisms. [1] [2] [3]

Test improvements

  • Updated and expanded unit tests in ConfigurableAutoConfigurationImportFilterTest to cover new exclusion formats, placeholder resolution, and duplicate handling, ensuring robust validation of the new logic. [1] [2] [3]

Project metadata and dependency updates

  • Bumped microsphere-spring.version from 0.1.4 to 0.1.5 in microsphere-spring-boot-parent/pom.xml and updated the main project revision to 0.1.5-SNAPSHOT in pom.xml. [1] [2]
  • Removed legacy Maven distribution and repository management configuration from the main pom.xml to simplify project setup.

Documentation

  • Updated the README.md to remove badges related to issue resolution and open issues, streamlining the project overview section.

Updated the <revision> property in pom.xml to prepare for the next development iteration.
Updated the microsphere-spring.version property in the parent POM from 0.1.4 to 0.1.5 to use the latest release.
Enhanced ConfigurableAutoConfigurationImportFilter to support exclusion of auto-configuration classes using both comma-delimited and array property syntaxes. This improves flexibility in configuration and ensures exclusions are correctly resolved from environment properties.
Deleted the unit test file for ConfigurableAutoConfigurationImportFilter. This may be part of a test cleanup or refactoring effort.
Introduces comprehensive JUnit tests for the ConfigurableAutoConfigurationImportFilter class, covering matching logic, exclusion property handling, placeholder resolution, and utility methods. These tests improve reliability and ensure correct behavior of auto-configuration exclusion features.
Deleted badges for average issue resolution time and percentage of open issues from the README to simplify the badge section.
Deleted the <distributionManagement> and <repositories> sections from pom.xml, likely to simplify project configuration or move repository management elsewhere.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ Complexity Δ
...ure/ConfigurableAutoConfigurationImportFilter.java 100.00% <100.00%> (ø) 23.00 <9.00> (+5.00)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mercyblitz mercyblitz merged commit b8fceaa into microsphere-projects:dev-1.x Nov 7, 2025
37 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.

1 participant