Spring Boot v2.4.0-M2 Release Notes
Release Date: 2020-08-13 // over 3 years ago-
๐ฑ โญ New Features
- ๐ง Prefer non-reflective access to ConfigurationClassPostProcessor #22858
- 0๏ธโฃ Do not include cookie headers in HTTP traces by default #22829
- Jetty with Conscrypt no longer a requirement for easy HTTP/2 #22826
- โ Add no-pull option for image building #22736
- ๐ Use new core framework r2dbc support #22708
- Fail hard if spring.profiles.include is used with new config processing #22693
- ๐ Allow DurationFormat and PeriodFormat to be used on parameters #22646
- ๐ Allow for programatic access to new ConfigDataEnvironment processing #22601
- Instrument SpringBootApplication for application startup metrics #22600
- โ Add configuration to disable Redis Cluster dynamic sources refresh #22571
- ๐ Allow Jedis to be selected when both Jedis and Lettuce are on the classpath #22569
- โ Add basic auth support for Prometheus pushgateway #22548
- โ Add functional constructor to EnvironmentPostProcessorApplicationListener #22529
- โ Add support for profile groups #22522
- 0๏ธโฃ Extract DefaultPropertiesPropertySource class #22520
- โ Add plugin management for liquibase-maven-plugin #22499
- โ Add CloudPlatform.isEnforced that uses a Binder #22498
- ๐ Replace ConfigFileApplicationListener and rework application properties support #22497
- โ Add DeferredLogFactory support #22496
- โ Add multi-document properties file support #22495
- โ Add ConfigurationPropertySource.from factory method #22494
- โ Add @name support for value object binding #22492
- ๐ Improve Liveness/Readiness health indicators and probes configuration #22483
- โ Remove version management for exec-maven plugin #22397
- 0๏ธโฃ Make DefaultErrorAttributes easier to subclass for message customization #22378
- โ Add properties for Netty HttpDecoderSpec #22367
- ๐ Avoid unnecessary allocations in ConditionMessage for NORMAL style #22331
- ๐ Allow SpringApplication to create its application context without requiring reflection #22322
- โ Add failure analyzer for missing Liquibase changelog #22320
- Switch Neo4j health checks to the new Neo4j driver #22302
- โ Add auto-configuration for Neo4j driver #22301
- โฌ๏ธ Upgrade to Spring Data Neo4j 6 #22299
- Measure with nanoseconds in HttpExchangeTracer #22266
- ๐ Support configuration of localEntityIdTemplate for a SAML Relying Party #22258
- โ Add a property to not create HealthIndicators from AbstractRoutingDatasources #22222
- โ Add support for reactive Elasticsearch healthcheck #22215
- ๐ Support incremental annotation processing with Gradle #22150
- ๐ Allow exclude only health groups #22053
- ๐ง Auto-configure Rabbit connection factory with CredentialsProvider and CredentialsRefreshService when available #22016
- ๐ Allow specifying unit type of configuration property when injected via constructor #21746
- โ Add option to configure PathPatternParser in Spring MVC #21694
- โ Add support for easily disabling metrics export #21658
- ๐ Support iso offset time and date-time conversion with MVC and WebFlux by setting time or date-time properties to iso-offset #21630
- โ Add properties to control exceptions ignored by LdapTemplate #21289
- ๐ Support additional R2DBC pool properties #21219
- 0๏ธโฃ Switching default to include layers index for fat jar #20983
- โ Add support for creating property sources from volume-mounted Kubernetes ConfigMaps and Secrets #19990
- โ Add a test slice for Spring Data Cassandra #17490
- ๐ง Consider spring.profiles.default when processing configuration files #15994
- Application properties outside of jar should take precedence over profile-specific variants inside the jar #3845
๐ฑ ๐ Bug Fixes
- MustacheEnvironmentCollector with nullValue compiler option no longer works in version 2.3.1 #22938
- Externalized Configuration ignores null values in SPRING_APPLICATION_JSON #22897
- CouchbaseCacheManager can no longer be customized using CacheManagerCustomizer #22874
- Requests that should be handled by an additional DispatcherServlet result in a 404 response #22856
- Legacy endpoint ids with '-' do not migrate cleanly #22850
- When Reactor's debug agent fails to initialize, the cause of the failure is discarded #22848
- StartupStep are closed twice in SpringApplicationRunListeners #22776
- ๐ OCI image build fails if environment has any empty properties #22735
- Kubernetes readiness probe endpoint returning 404 #22698
- ๐ NPE in BeanDefinitionLoader when loading non-Class sources and XML support is disabled #22696
- ๐ LiquibaseEndpoint does not report change sets from ancestor contexts #22687
- ๐ Async exceptions not handled by error pages in war deployments #22673
- XADataSourceAutoConfiguration is difficult to use with DB2XADataSource as it does not have a URL property #22642
- ๐ง TaskExecutorBuilder only uses second-precision when configuring the await termination period #22612
- Profile groups are not applied to the environment #22605
- ๐ง Setting ignoreInvalidFields=true on @ConfigurationProperties causes unknown fields to be ignored as well #22586
- Spring Boot 2.3.2: new context is created for every IT class if SpyBean is used #22584
- โ Background preinitialisation may cause Jackson2ObjectMapperBuilder's Kotlin detection warning to be silently dropped #22581
- ๐ UndertowWebServerFactoryCustomizer does not support Options but only UndertowOptions #22579
- โ WebMvcTest and WebFluxTest do not include Jackson Module beans #22577
- CouchbaseCacheConfiguration is not ordered properly #22568
- ๐ AbstractRepositoryConfigurationSourceSupport does not override registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry) #22546
- Filter empty YAML documents #22493
- ๐ Numerous logs mentioning a failed JNDI lookup when using Jetty #22419
- ConditionMessage#items throws an NPE with a null list of items although the Javadoc states it is tolerated #22357
- ๐ Image building fails with an unhelpful error message when building an image from a jar that includes the launch script #22349
- ๐ Temporary files not cleaned up after Maven plugin execution #22328
- ๐ง OnClassCondition tries to determine the outcome for single auto-configuration classes in parallel #22327
- ๐ง ConfigurationPropertiesBeanDefinitionValidator interferes with EclipseLink load-time weaving #22326
- ๐ Image building fails when DOCKER_HOST is set to a local socket prefixed with unix:// #22304
- A WebFlux app that depends on com.amazonaws:DynamoDBLocal fails to start #22283
- ๐ง The failure when spring.redis.url is configured with a redis-sentinel:// URL is hard to diagnose #22272
- โ Property spring.autoconfigure.exclude ignored by test slices #22263
- ๐ OAuth2ResourceServerAutoConfiguration does not back off completely when spring-security-oauth2-resource-server is not on the classpath #22255
- 0๏ธโฃ NullPointerException in ErrorPageFilter when a MissingServletRequestParameterException is thrown and there's no DefaultHandlerExceptionResolver #22250
- ๐ Period conversion does not support a ChronoUnit of WEEKS but supports weeks in ISO-8601 (e.g. P2W) and simple (e.g. 2w) formats #22238
- โ Layered bootJar task causes warnings when custom source set is present in the project #22202
- @ConditionalOnSingleCandidate does not match when there is a single candidate that is a scoped bean #22198
- ๐ Kafka Stream consumer metrics were lost in the move away from KafkaConsumerMetrics #22196
- ๐ NPE in spring-boot-maven-plugin:build-image when setting custom builder that is not a builder #22180
- ๐ง Accept empty filter dispatcher types in auto-configurations #22176
- โ TomcatMetricsBinder may log a warning for an NPE if the context is closed before the ApplicationStartedEvent is published #22168
- Resource loading fails in Tomcat when Spring Boot is loaded from the common class loader #22160
- ๐ง Inconsistent configuration ordering with profiles #18199
- Conditional documents in profile specific file are not loaded consistently #11109
๐ Documentation
- ๐ PushGateway documentation does not document enabled flag properly #22931
- 0๏ธโฃ Default value of server.jetty.accesslog.format is wrongly associated to server.forward-headers-strategy #22928
- Use wildcard in BP_JVM_VERSION with image building #22923
- ๐ง Kotlin examples for configuring bootBuildImage's environment use wrong map configuration syntax #22917
- ๐ง Mention configuration customizers for WebTestClient and RestAssured in AutoConfigureRestDocs' javadoc #22911
- ๐ Document how to discover the HTTP Port at Runtime for both Servlet and Reactive web apps #22900
- ๐ง Document that spring-boot-configuration-processor cannot detect default value defined externally #22891
- ๐ง Document that application.conf is not read by default when using the Cassandra auto-configuration #22889
- ๐ Fix wrong reference in
ReadinessStateHealthIndicator
javadoc #22846 - ๐ Docs say Health's inner
details
section may contain components #22775 - โ Recommend the use of AopTestUtils.getTargetObject() when setting expectations on a spied bean that Spring has proxied #22759
- Document that schema.sql and data.sql will still be run when using Flyway or Liquibase but discourage their use #22749
- ๐ Fix broken links to Micrometer registry docs #22707
- Document properties to enable probe health indicators #22697
- ๐ Document how to use Gradle's native bom support as an alternative to the dependency management plugin #22678
- ๐ง Document how to opt back in to DataSource auto-configuration when using R2DBC #22677
- ๐ Clarify documentation on use of @AutoConfigureRestDocs with WebTestClient #22670
- ๐ Document Spring Data Neo4j 6 support #22652
- ๐ Update metrics documentation to note the benefits of using a MeterBinder when registering a metric that relies on other beans #22630
- ๐ Include a hint where to find documentation for DevTools in docs overview #22623
- โ Add ElasticsearchReactiveHealthIndicator to docs #22619
- ๐ Fix link to Elasticsearch health indicator #22618
- ๐ Link to App Engine Standard sample not working #22609
- ๐ Improve documentation about swapping one technical starter for another #22597
- Document how to use MongoClientSettingsBuilderCustomizer #22590
- ๐ง Document the need for configuration files to have a file extension #22588
- ๐ง Document that java.util.Optional is not recommended with ConfigurationProperties #22575
- ๐ Typo in metadata for "management.health.readinessstate.enabled" #22561
- ๐ Overhaul "externalized configuration" documentation #22521
- ๐ Update the documentation to avoid trivialising what the reader's learning about #22411
- ๐ Restructure "Building Container Images" section #22360
- ๐ง Clarify the effect of ordering auto-configuration #22340
- ๐ Update documentation to reflect the web server now being started immediately before the ContextRefreshedEvent is published #22316
- ๐ Fix dead link url and name of the STS download link #22274
- Clarify locations inside and outside the jar from which properties are loaded #22265
- ๐ Rename NoneOfNestedConditions to NoneNestedConditions in example docs #22247
- ๐ Update metadata for WebFlux time and date-time properties to offer iso-offset as a suggested value #22174
- โ Add package info for org.springframework.boot.autoconfigure.elasticsearch.rest #22173
- โก๏ธ Update layers.idx file example in docs #22152
โฌ๏ธ ๐จ Dependency Upgrades
- โฌ๏ธ Upgrade to Selenium HtmlUnit 2.43.1 #22937
- โฌ๏ธ Upgrade to Micrometer 1.5.4 #22936
- โฌ๏ธ Upgrade to Flyway 6.5.4 #22935
- โฌ๏ธ Upgrade to Spring HATEOAS 1.2.0-M1 #22893
- โฌ๏ธ Upgrade to Spring Batch 4.3.0-M2 #22892
- โฌ๏ธ Upgrade to Versions Maven Plugin 2.8.1 #22884
- โฌ๏ธ Upgrade to Selenium HtmlUnit 2.43.0 #22883
- โฌ๏ธ Upgrade to Pooled JMS 1.1.2 #22882
- โฌ๏ธ Upgrade to Maven Resources Plugin 3.2.0 #22881
- ๐ Upgrade to Lettuce 5.3.3.RELEASE #22880
- โฌ๏ธ Upgrade to Kotlin Coroutines 1.3.8 #22879
- โฌ๏ธ Upgrade to HtmlUnit 2.43.0 #22878
- โฌ๏ธ Upgrade to Hibernate 5.4.20.Final #22877
- โฌ๏ธ Upgrade to Dropwizard Metrics 4.1.12.1 #22876
- ๐ Upgrade to Dependency Management Plugin 1.0.10.RELEASE #22875
- โฌ๏ธ Upgrade to Mockito 3.4.6 #22838
- โฌ๏ธ Upgrade to Tomcat 9.0.37 #22818
- โฌ๏ธ Upgrade to SQLite JDBC 3.32.3.2 #22817
- ๐ Upgrade to Spring HATEOAS 1.1.1.RELEASE #22816
- โฌ๏ธ Upgrade to Solr 8.5.2 #22815
- โฌ๏ธ Upgrade to SendGrid 4.6.3 #22814
- โฌ๏ธ Upgrade to Netty 4.1.51.Final #22812
- โฌ๏ธ Upgrade to MySQL 8.0.21 #22811
- โฌ๏ธ Upgrade to MongoDB 4.1.0 #22810
- โฌ๏ธ Upgrade to Micrometer 1.5.3 #22809
- โฌ๏ธ Upgrade to Maven War Plugin 3.3.1 #22808
- โฌ๏ธ Upgrade to MariaDB 2.6.2 #22807
- โฌ๏ธ Upgrade to Liquibase 3.10.2 #22806
- โฌ๏ธ Upgrade to Spring AMQP 2.3.0-M2 #22761
- โฌ๏ธ Upgrade to RSocket 1.1.0-M1 #22751
- โฌ๏ธ Upgrade to Spring Kafka 2.6.0-M1 #22730
- โฌ๏ธ Upgrade to Spring Integration 5.4.0-M2 #22729
- โฌ๏ธ Upgrade to Couchbase Client 3.0.7 #22688
- ๐ Upgrade to Spring Security 5.4.0-RC1 #22668
- โฌ๏ธ Upgrade to Reactor 2020.0.0-M2 #22667
- โฌ๏ธ Upgrade to Elasticsearch 7.8.1 #22648
- โฌ๏ธ Upgrade to Spring Data 2020.0.0-M2 #22647
- โฌ๏ธ Upgrade to Spring Framework 5.3.0-M2 #22640
- โฌ๏ธ Upgrade to Groovy 2.5.13 #22527
- โฌ๏ธ Upgrade to R2DBC Arabba-SR6 #22395
- โฌ๏ธ Upgrade to Infinispan 11.0.1.Final #22286
- โฌ๏ธ Upgrade to Maven Shade Plugin 3.2.4 #22228
๐ฑ โค๏ธ Contributors
๐ We'd like to thank all the contributors who worked on this release!