Spring/spring-boot: Release v2.4.0-M2
Name: spring-boot
Owner: Spring
Release: v2.4.0-M2
Released: 2020-08-13
License: Apache-2.0
Release Assets:
⭐ New Features
- Prefer non-reflective access to ConfigurationClassPostProcessor #22858
- 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
- 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
- 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
- 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
- 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
- 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
:heart: Contributors
We'd like to thank all the contributors who worked on this release!