The Wire · Showcase
SPeL Configuration Gets a Builder, Deprecates 9 Constructors
By RepoJournal · Filed · About Spring
Spring Framework is modernizing SpEL configuration and it's about time you stopped wrestling with those unlabeled boolean and int constructors.
Spring Framework is deprecating all nine overloaded SpelParserConfiguration constructors [1], steering everyone toward the new builder API [2]. The old design grew to an eight-parameter constructor as options piled up since 3.0, making call sites hard to read. Sam Brannen notes the plan was set when the builder landed in 7.0.10, and now it's the recommended path, with `withDefaults()` for the common case. Separately, dependabot is churning through Jackson BOM patches across the org, bumping tools.jackson to 3.2.2 [3] and com.fasterxml.jackson to 2.22.2 [4] in spring-integration, with matching updates in spring-kafka [5][6]. Spring Boot starter jumps from 4.0.3 to 4.0.7 in spring-kafka's development-dependencies group [7], and spring-data-elasticsearch fixed script handling when building an UpdateQuery [8]. All quiet otherwise, just housekeeping.
One email a day. Unsubscribe in one click.
Keep up with Spring in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Migrate SpelParserConfiguration call sites to the builder API or withDefaults() before the old constructors are removed spring-projects/spring-framework [plan]
- → Review the UpdateQuery script fix if you build scripts in Spring Data Elasticsearch spring-projects/spring-data-elasticsearch [monitor]
- → Let dependabot PRs flow into CI to catch any Jackson compatibility issues early spring-projects/spring-integration [monitor]
References
- [1] Deprecate SpelParserConfiguration constructors in favor of the builder API spring-projects/spring-framework
- [2] Introduce a builder for SpelParserConfiguration spring-projects/spring-framework
- [3] Bump tools.jackson:jackson-bom from 3.2.1 to 3.2.2 ↗ spring-projects/spring-integration
- [4] Bump com.fasterxml.jackson:jackson-bom from 2.22.1 to 2.22.2 ↗ spring-projects/spring-integration
- [5] Bump tools.jackson:jackson-bom from 3.2.1 to 3.2.2 ↗ spring-projects/spring-kafka
- [6] Bump com.fasterxml.jackson:jackson-bom from 2.21.5 to 2.21.6 ↗ spring-projects/spring-kafka
- [7] Bump org.springframework.boot:spring-boot-starter from 4.0.3 to 4.0.7 in the development-dependencies group ↗ spring-projects/spring-kafka
- [8] Fix script handling when building an UpdateQuery. ↗ spring-projects/spring-data-elasticsearch