Skip to content

Releases: spring-projects/spring-framework

v7.0.0-M7

17 Jul 10:04
Compare
Choose a tag to compare
v7.0.0-M7 Pre-release
Pre-release

⭐ New Features

  • LocalDataSourceJobStore should re-initialize statically registered Quartz ConnectionProvider on context restart #35208
  • Make rootObject parameter consistently nullable #35206
  • Refine multipart converter registration in HttpMessageConverters #35203
  • Introduce getSource() in ApplicationContextEvent with covariant return type #35197
  • Introduce ContextRestartedEvent as a subtype of ContextStartedEvent #35194
  • Align HttpMessageConverters builder with WebFlux codecs variants #35187
  • Transaction-scoped resource binding in TransactionSynchronizationManager #35182
  • Use flexible generics nullness in RestClient.RequestHeadersSpec.ExchangeFunction #35180
  • Introduce ConfigurableApplicationContext.restart() method #35171
  • Pause unused application contexts in the TestContext framework #35168
  • Skip initialization of a NullBean #35165
  • Short-circuit matching algorithm in InstanceFilter #35161
  • Support direct matching against exceptions in ExceptionTypeFilter #35160
  • InstanceFilter and ExceptionTypeFilter should set matchIfEmpty to true by default #35158
  • Require explicit constraints in @Contract #35157
  • Specify fetchSize/maxRows/queryTimeout per statement in JdbcClient #35155
  • Include MethodParameter[] parameters in HttpRequestValues.Processor #35148
  • Deprecate DaoSupport classes #35145
  • Remove maxDuration/maxElapsedTime support from RetryPolicy #35144
  • Introduce @ConcurrencyLimit annotation based on ConcurrencyThrottleInterceptor #35133
  • Consistently implement toString() in BackOff strategies #35120
  • Support API versioning for functional endpoints #35113
  • Migrate orm.hibernate5 to orm.jpa.hibernate package for Hibernate ORM 7.0 #35111
  • Redesign RetryPolicy to directly incorporate BackOff #35110
  • Ability to limit list of supported API versions to explicitly configured ones for Spring MVC #35105
  • Refine nullability of PropertyResolver.getProperty(key: String) extension #35104
  • Support for exposing additional object types in SmartFactoryBean #35101
  • Add missing @Nullable to MethodInvoker::setArguments parameter #35089
  • Support @RequestBody in interface method when computing "consumes" condition #35086
  • Consistent validation of supported API versions #35082
  • Resolve optional HandlerMethod parameter of @ExceptionHandler method to null #35067
  • Add ability to decorate HttpExchangeAdapter through HttpServiceProxyFactory #35059
  • Introduce Builder API and factory methods for RetryPolicy #35058
  • Revise RetryTemplate for alignment with Reactor (in preparation for @Retryable) #35057
  • Add ApiVersionResolver based on parameter in media type #35050
  • Support deprecation information in API versioning #35049
  • Add support for configuring SslInfo in WebTestClient #35042
  • Make built-in RetryPolicy implementations final #35040
  • Specify flexible generics nullness in spring-jdbc #34911
  • Allow usage of @CheckReturnValue on types and constructors #34910
  • Support repeatable writes in FormHttpMessageConverter#writeMultipart #34859
  • Convert applicable methods in Scope to default methods #34757
  • Add public method to get bean order #34712
  • Discard further rows once maxRows has been reached #34709
  • Support DefaultWebFilterChain allowing the current filter to provide its name explicitly #34702
  • API Versioning Support #34565
  • Introduce @Retryable AOP support (based on core.retry and Reactor retry functionality) #34529
  • Revisit converters and codecs default setup in HTTP stacks #33894
  • ConfigurationBeanNameGenerator for @Bean-annotated methods #33448
  • Qualified EntityManager/EntityManagerFactory injection (aligned with Jakarta Persistence 3.2) #33414
  • Introduce JmsClient with customizable send/receive operations #32501
  • Allow conditional handling of 404 with HTTP Interface clients #32105
  • Allow to set TTL (and other QoS-related settings) on a per-message (and/or per-send) basis #26840

🐞 Bug Fixes

  • Allow ordering of HttpMessageConverterss through WebMvcConfigurer.configureMessageConverters(HttpMessageConverters.Builder) #35177
  • Content-Disposition response header duplicated for failed StreamingResponseBody #35116
  • CachingMetadataReaderFactory does not cache all metadatareader calls #35112
  • sslInfo() should return the builder for MockServerHttpRequest #35075
  • HttpService group adapters could not be instantiated in a native image #35038

📔 Documentation

  • Improve URLs in Validation chapter of the reference manual #35181
  • Update Spring MVC message converters documentation #35166
  • Add a note about Field/Method vs. TYPE_USE annotations in reference docs #35098
  • Document intention of toString() in HandlerMethod #35055
  • Add section in docs on byte-range requests in Spring MVC and WebFlux #35052

🔨 Dependency Upgrades

  • Upgrade to Jetty 12.1.0.beta1 #35084
  • Upgrade to Kotlin 2.2.0 #34453
  • Upgrade to Micrometer 1.16.0-M1 #35170
  • Upgrade to Reactor 2025.0.0-M5 #35169

❤️ Contributors

Thank you to all the contributors who worked on this release:

@Allan-QLB, @NeatGuyCoding, @OlgaMaciaszek, @Pankraz76, @izeye, @ngocnhan-tran1996, @quaff, @remeio, @renatomameli, @scordio, and @wonyongg

v6.2.9

17 Jul 07:54
Compare
Choose a tag to compare

⭐ New Features

  • OncePerRequestFilter cannot be CGLib-proxied #35198
  • Consistently catch InaccessibleObjectException next to IllegalAccessException #35190
  • Introduce Date-to-Instant and Instant-to-Date converters #35175
  • Consistent nullability and exception declarations in AbstractMessagingTemplate hierarchy #35159
  • Register runtime hints for Instant-to-Timestamp conversion #35156
  • Improve handling of ResponseEntity<?> in Spring MVC #35153
  • Support @CacheConfig("myCacheName") declarations for simplified configuration #35152
  • Declare messageSelector parameters in JmsOperations as @Nullable #35151
  • Add getter for OverflowStrategy in ConcurrentWebSocketSessionDecorator #35132
  • Use preset Content-Type for streaming and reactive responses in Spring MVC #35130
  • Leniently tolerate null @Aspect bean #35074
  • DataAccessResourceFailureException thrown when transaction times out on PostgreSQL #35073
  • MethodInvokingFactoryBean fails to invoke publicly exported methods overridden by internal classes when using JPMS #34028

🐞 Bug Fixes

  • Restore preference for interface (most abstract) method in getPubliclyAccessibleMethodIfPossible #35189
  • Make targetBeanName field in AbstractBeanFactoryBasedTargetSource protected to avoid exceptions in logging and toString() #35172
  • Fix inconsistencies in StaticListableBeanFactory #35119
  • Support StreamingHttpOutputMessage in RestClient #35102
  • When building DELETE requests, the request body is not used in JdkClientHttpRequest.buildRequest #35068
  • AOT-generated bean registration file contains "too many constants" when building with many beans #35044
  • Prevent cache pollution by storing only the factories #34732
  • WebFlux decodes wildcard content-types as form-data/multipart #34660
  • AOT-generated CGLib proxies do not contain method overrides #34642
  • 500 response for ResourceHttpRequestHandler when requested range is not satisfied #34490

📔 Documentation

  • Document how to register runtime hints for convention-based conversion #35178
  • Link to @ContextConfiguration Javadoc from reference manual #35088

🔨 Dependency Upgrades

  • Upgrade to JUnit 5.13.3 #35103
  • Upgrade to Micrometer 1.14.9 #35202
  • Upgrade to Reactor 2024.0.8 #35201

❤️ Contributors

Thank you to all the contributors who worked on this release:

@Meijuh, @RazorNd, @chenggwang, @izeye, @mjd507, @ngocnhan-tran1996, and @philwebb

v7.0.0-M6

12 Jun 10:22
Compare
Choose a tag to compare
v7.0.0-M6 Pre-release
Pre-release

⭐ New Features

  • Allow FixedBackOff to be constructed with only a custom interval #35028
  • Use String.replace in MetadataEncoder #35025
  • Revise @Nullable declarations for contains*() methods in CollectionUtils #35023
  • Introduce JacksonJsonMessageConverter.getObjectMapper() #34963
  • Remove (String, String) variants of setProperty() and withProperty() from MockEnvironment #34948
  • Allow access to env from SupplierContextDsl #34943
  • Consistently declare nullability @Contract for core utilities #34934
  • Update HttpServiceGroupConfigurer API #34926
  • Make ProblemDetailJacksonXmlMixin compatible with Jackson 3 #34925
  • Introduce hints in RestClient API #34924
  • Add Kotlin body advices #34923
  • Add support for callable references to BeanRegistrarDsl #34922
  • Additional updates for API versioning in test and client support #34919
  • Define nullability @Contract for quote and getFilename in StringUtils #34896
  • Support @Import on interfaces #34820
  • Use HexFormat in CharacterEditor #34798
  • Use HexFormat in ContentDisposition #34797
  • Introduce minimal retry functionality as a core framework feature #34716
  • Add support for "application/*+x-protobuf" media type #34645
  • Support OutputStream and InputStream in HTTP Interface clients #32358

🐞 Bug Fixes

  • @Contract for SupplierUtils.resolve(Supplier) incorrectly declares !null -> !null #34987
  • Consistent null check on injection points for pre-existing singleton beans #34952

📔 Documentation

  • Refine null-safety documentation terms #34982
  • Stop referring to JUnit 5 in documentation #34970
  • Fix typos in API versioning #34961
  • Add missing since attributes for @Deprecated declarations #34942
  • Improve Javadoc for getFilename() and getFilenameExtension() in StringUtils #34932
  • Add documentation for HTTP service proxy registry #34912
  • Update outdated JettyHttpHandlerAdapter example in reference documentation #34877

🔨 Dependency Upgrades

  • Upgrade to Jackson 3.0.0-rc5 #34945
  • Upgrade to Jetty 12.1.0.beta0 #34930
  • Upgrade to Kotlin 2.2.0-RC2 #34946
  • Upgrade to Micrometer 1.15.1 #35019
  • Upgrade to Netty v4.2.2.Final and Reactor 2025.0.0-SNAPSHOT #34996
  • Upgrade to Reactor 2025.0.0-M4 #34997

❤️ Contributors

Thank you to all the contributors who worked on this release:

@Tussle0410, @doroszkiewicz, @fmbenhassine, @hgh1472, @izeye, @kilink, @kssumin, @kwondh5217, @quaff, @scottfrederick, and @violetagg

v6.2.8

12 Jun 09:42
Compare
Choose a tag to compare

⭐ New Features

  • Nullability @Contract declaration for CodeFlow.isIntegerForNumericOp() is unnecessary #34985
  • Serializer hint registration is broken for some Kotlin classes #34979
  • Clients created using JdkClientHttpRequestFactory set content-length for GET, DELETE and HEAD requests #34971
  • Support registration of non-public BeanDefinitionReader via @ImportResource #34928
  • Make max size for pattern cache in PathPatternMatchableHandlerMapping configurable #34918
  • Add optimized DataBufferInputStream overrides #34799

🐞 Bug Fixes

  • Encode non-printable character in Content-Disposition parameter #35034
  • Allow update of existing WebSession after max sessions limit is reached #35013
  • Fix support for collections in AbstractKotlinSerializationHttpMessageConverter #34992
  • PathPattern#combine throws StringIndexOutOfBoundsException #34986
  • Fix AOT code generation for autowired inner class constructor #34974
  • AbstractFileResolvingResource.exists closes JAR resource input streams with v6.2.7 #34955
  • Enhanced configuration class fails to call package-visible superclass constructor on WebSphere #34950
  • Fix REPLY_CHANNEL header check in MessageHeaderAccessor #34949
  • MockEnvironment does not accept Object property values #34947
  • PropertySourcesPlaceholderConfigurer no longer uses ConversionService from Environment #34936
  • @Contract for StreamUtils.drain() incorrectly declares null results in an exception #34933
  • Inconsistent behavior injecting null @Bean factory parameter #34929
  • MockHttpServletRequest.addHeader duplicates "Content-Type" header #34913
  • BeanUtils.getParameterNames fails for Kotlin data classes #34760
  • JAXB message converters ignore Content-Type charset #34745
  • Aspect Not Triggered After Restart in Spring Boot 3.4.x (But Works in 3.3.10) #34735
  • Add caching headers to unmodified static resources #34614

📔 Documentation

  • Apply gh-34856 to MockClientHttpRequest in testfixture package #35031
  • Fix ResourceHttpRequestHandler#setHeaders JavaDoc #35004
  • Remove reference to AspectJ Eclipse Javadoc #35000
  • Mention CompletableFuture in Spring MVC "Asynchronous Requests" section of reference manual #34991
  • Fix exception name in ModelAttribute docs #34980
  • Fix syntax in @SqlGroup example #34972
  • Update X-Forwarded-Proto doc to say https / http #34959
  • Update Guidance on Best Practices To Test Code That Uses RestClient and RestTemplate #34892
  • Add a section for WebAsyncTask in mvc-ann-async.adoc #34885
  • Clarify what @RestControllerAdvice vs @ControllerAdvice apply to by default #34866
  • Improve Javadoc for @ExceptionHandler #34554

🔨 Dependency Upgrades

  • Upgrade to HttpComponents HttpClient 5.5 #34941
  • Upgrade to Micrometer 1.14.8 #35020
  • Upgrade to Reactor 2024.0.7 #35021

❤️ Contributors

Thank you to all the contributors who worked on this release:

@Allan-QLB, @Aurh1l, @BowieDu, @DhruvTheDev1, @Dongnyoung, @JimmyAx, @addoDev, @dmitrysulman, @izeye, @jjank, @kilink, @mbazos, @msnsaeed71, @ngocnhan-tran1996, @nosan, @remeio, @vpavic, and @yuzawa-san

v6.1.21

12 Jun 08:55
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Encode non-printable character in Content-Disposition parameter #35035
  • Allow update of existing WebSession after max sessions limit is reached #35018
  • Enhanced configuration class fails to call package-visible superclass constructor on WebSphere #34951

🔨 Dependency Upgrades

  • Upgrade to Reactor 2023.0.19 #35022

v7.0.0-M5

15 May 10:31
Compare
Choose a tag to compare
v7.0.0-M5 Pre-release
Pre-release

⭐ New Features

  • Deprecate PropertyPlaceholderConfigurer and PreferencesPlaceholderConfigurer for removal #34880
  • Add Consumer based variant methods to HttpRequestValues builder #34870
  • Add defaultApiVersion to RestClient and WebClient builders #34857
  • Evaluate system properties in default HttpClient in ReactorClientHttpRequestFactory #34850
  • Use beanClassLoader in the HTTP Service Registrar #34846
  • Deprecate JUnit 4 support in the Spring TestContext Framework #34794
  • Ability to validate supported API versions only against explicitly configured ones #34775
  • Revisit Jackson support #33798

🐞 Bug Fixes

  • ClassFileAnnotationMetadata.fromTypeDescriptor(…) fails on Java 24 #34882
  • Align ClassFileClassMetadata with other implementations #34869
  • Incorrect filtering of groups with HttpServiceGroupConfigurer #34867
  • Aggregated Javadoc no longer published since 7.0.0-M4 #34774

📔 Documentation

  • Add Reference Documentation for API Versioning #34569

🔨 Dependency Upgrades

  • Upgrade to Kotlin 2.1.21 #34900
  • Upgrade to Micrometer 1.15.0 #34888
  • Upgrade to Reactor 2025.0.0-M3 #34897

❤️ Contributors

Thank you to all the contributors who worked on this release:

@dmitrysulman, @philwebb, and @siom79

v6.2.7

15 May 09:06
Compare
Choose a tag to compare

⭐ New Features

  • Forward more methods to underlying InputStream in NonClosingInputStream #34893
  • Introduce Spring property for the default property placeholder escape character #34865
  • Close ApplicationContext once AOT processing has completed #34841
  • Fix AbstractJackson2HttpMessageConverter#getObjectMappersForType nullness #34811
  • Add option for case-insensitive match to PatternMatchUtils #34801
  • RestClient @RequestBody parameters lose generic type information when creating HTTP service beans #34793
  • Adds option to set Principal in MockServerWebExchange #34789

🐞 Bug Fixes

  • Beans created by FactoryBean are not considered as autowiring candidates if another thread holds a singletonLock #34902
  • PropertySourcesPlaceholderConfigurer placeholder resolution fails in several scenarios #34861
  • HttpComponentsClientHttpRequestFactory setConnectionRequestTimeout not working with httpclient 5.3.1 #34851
  • Fragment.create() requires mutable map - which is unusable when used with Kotlin #34848
  • Duplicate BeanOverrideHandler discovered in @Nested test case with superclass from different class or in interface implemented multiple times #34844
  • Accidental ClassLoader defineClass enforcement after #34677 #34824
  • HttpEntity.EMPTY headers should not be possible to mutate via HttpHeaders constructor #34812
  • AbstractFileResolvingResource.exists incorrectly reports result for resources inside of spring-boot executable jar #34796
  • Correctly expand query param with same name from URI variables array #34783
  • R2DBC NamedParameterUtils only expands reused collection parameter once #34768
  • PathMatchingResourcePatternResolver wrongly assumes that target/classes always exists #34764

📔 Documentation

  • Clarify CompositePropertySource behavior for EnumerablePropertySource contract #34886
  • Javadoc and @Nullable annotation for servletContext parameter of ConfigurableWebEnvironment.initPropertySources are contradictory #34845
  • Spring MVC: @EnableAsync needs to be redeclared for each ApplicationContext #34843
  • Provide a working example instead of unclear placeholders #34828

🔨 Dependency Upgrades

  • Upgrade to Micrometer 1.14.7 #34889
  • Upgrade to Reactor 2024.0.6 #34898

❤️ Contributors

Thank you to all the contributors who worked on this release:

@Artur-, @blake-bauman, @iifawzi, @kilink, @quaff, @whlit, and @zzoe2346

v6.1.20

15 May 08:27
Compare
Choose a tag to compare

⭐ New Features

  • Add option for case-insensitive match to PatternMatchUtils #34802

🐞 Bug Fixes

  • HttpComponentsClientHttpRequestFactory setConnectionRequestTimeout not working with httpclient 5.3.1 #34854
  • Accidental ClassLoader defineClass enforcement after #34677 #34839

📔 Documentation

  • Clarify CompositePropertySource behavior for EnumerablePropertySource contract #34887

🔨 Dependency Upgrades

  • Upgrade to Reactor 2023.0.18 #34899

v7.0.0-M4

17 Apr 09:35
Compare
Choose a tag to compare
v7.0.0-M4 Pre-release
Pre-release

⭐ New Features

  • Make BeanDefinitionPropertyValueCodeGeneratorDelegates public #34761
  • Add AOT support for Registry of HTTP Interface Proxies #34750
  • Make HttpServiceGroupConfigurer extend Ordered. #34739
  • Introduce queryParamCount() in MockRestRequestMatchers #34703
  • Add method level callback for HttpRequestValues initialization #34699
  • Refine UriUtils#decode and StringUtils#uriDecode implementation and documentation #34673
  • Add visibility and return type to SimpleMethodMetadata toString #34649
  • Revise RepeatableContainers API to better guide developers #34637
  • Extract AnnotatedElementAdapter to public type #34628
  • Add support for ImportAware in BeanRegistrar #34627
  • Introduce Stream variant methods for SqlQuery #34623
  • Generate compiled SpEL expressions using Java 17 byte code level #34602
  • Allow adding bean name aliases in the programmatic bean registration DSL #34599
  • Support API Versioning in Tests #34568
  • Support API Versioning on the Client Side #34567
  • Propagate CoroutineContext to the CoExchangeFilterFunction #34555
  • Introduce OptionalToObjectConverter #34544
  • Create Registry for HTTP Interface Proxies with Extensible Registration DSL #33992
  • Reconsider log level for final methods on CGLIB proxy classes #33939
  • Enforce Servlet 6.1 and WebSocket 2.2 baselines #33918
  • Consider ClassFile API for reading class metadata from bytecode #33616
  • Give JdbcClient access to ConversionService for converting custom database object types #33467
  • Consider not rejecting preflight requests when no CORS configuration is provided #31839

📔 Documentation

  • Turn "CDS" documentation into a "JVM AOT cache" one #34700
  • Document that attribute is optional in @⁠AliasFor for overrides with the same name #34641
  • Reinstate links to JUnit 5 Javadoc APIs #27497

🔨 Dependency Upgrades

  • Upgrade to AspectJ 1.9.24 #34752
  • Upgrade to Gson 2.13.0 #34772
  • Upgrade to Kotlin 2.1.20 #34632
  • Upgrade to Micrometer 1.15.0-RC1 #34771
  • Upgrade to Reactor 2025.0.0-M2 #34770

❤️ Contributors

Thank you to all the contributors who worked on this release:

@OlgaMaciaszek, @Tussle0410, @dmitrysulman, @kilink, and @quaff

v6.2.6

17 Apr 07:49
Compare
Choose a tag to compare

⭐ New Features

  • An option for SimpleAsyncTaskExecutor to throw an exception when limit is reached #34727
  • Provide first-class support for Bean Overrides with @ContextHierarchy #34723
  • Micro performance optimizations #34717
  • Suppress "Unable to rollback against JDBC Connection" in case of timeout (connection closed) #34714
  • Avoid early FactoryBean instantiation for type-based retrieval with includeNonSingletons=false and allowEagerInit=true #34710
  • ReactiveCachingHandler still not using error handler on sync cache. #34708
  • Add an exchangeForRequiredValue variant to RestClient #34692
  • Recursively boxing Kotlin nested value classes in CoroutinesUtils #34682
  • ServletServerHttpRequest does not use charset parameter of application/x-www-form-urlencoded #34675
  • LifecycleGroup concurrent start and start timeout #34634
  • HibernateJpaDialect exception translation misses concrete exceptions wrapped in Hibernate's ExecutionException #34633

🐞 Bug Fixes

  • Inconsistency in SseEmitter.onCompletion() behavior between Spring 6.2.3 and 6.2.5 #34762
  • Deadlock while creating Spring beans with parallel bootstrap threads on IBM Liberty #34729
  • PropertyBatchUpdateException: causes of nested PropertyAccessExceptions not shown in output #34691
  • IllegalAccessError for package-private member of AzureStorageConfiguration on WebSphere #34684
  • Change in Jar usecache behavior with Spring 6.1.x causing java.lang.IllegalStateException: zip file closed #34678
  • Startup performance regression due to CGLIB class load attempts in Spring 6.1.x #34677
  • An infinite wait on a parallel context.getBean() #34672
  • InvalidObservationException: Invalid start: Observation 'http.client.requests' has already been started #34671
  • @Configuration classes can no longer be abstract without @Bean methods #34663
  • Generated-code for LinkedHashMap is missing static keyword #34659
  • Detect late-set primary markers for autowiring shortcut algorithm #34658
  • @MockitoBean with custom @Qualifier is not injected into @Configuration class #34646
  • Qualifier Resolution Issue in Parent-Child Context Hierarchies #34644
  • Enforced container-level acknowledge call for custom acknowledgement mode #34635
  • UriComponentsBuilder does not treat a URN as opaque if it contains a slash #34588
  • Migrating from Spring 6.1.x to 6.2.x leads to exceptions in a Pekko setup #34303

📔 Documentation

  • Update Javadoc for ignoreDependencyInterface() in AbstractAutowireCapableBeanFactory #34747
  • Update Javadoc to stop mentioning 5.3.x as the status quo #34740
  • Fix broken link for Server-Sent Events #34705
  • Fix typo in Bean Validation section of reference manual #34686
  • Remove unnecessary closing curly brackets in Javadoc #34679
  • Add javadoc notes on potential exception suppression in ListableBeanFactory#getBeansOfType #34629
  • Remove remaining references to Forwarded headers in MvcUriComponentsBuilder #34625

❤️ Contributors

Thank you to all the contributors who worked on this release:

@acktsap, @dmitrysulman, @iggzq, @izeye, @ngocnhan-tran1996, @obourgain, and @tobias-haenel