Commit Graph

7706 Commits (d684277f2954a2388a81d388e5fe223aa397f1f1)

Author SHA1 Message Date
Andy Wilkinson 255eb498c4 Upgrade to Netty Tcnative 2.0.28.Final
Closes gh-19239
5 years ago
Andy Wilkinson d2c5d971f2 Upgrade to Unboundid Ldapsdk 4.0.13
Closes gh-19238
5 years ago
Andy Wilkinson ca7ef3daec Upgrade to Couchbase Client 2.7.11
Closes gh-19237
5 years ago
Andy Wilkinson 3d35efb485 Upgrade to Spring Batch 4.1.3.RELEASE
Closes gh-19072
5 years ago
Andy Wilkinson 6a0ec7e1f4 Upgrade to Spring Data Lovelace-SR14
Closes gh-19068
5 years ago
Andy Wilkinson 72d3137941 Upgrade to Spring Cloud Connectors 2.0.7.RELEASE
Closes gh-19234
5 years ago
Andy Wilkinson 66639702be Upgrade to Jetty El 8.5.49
Closes gh-19233
5 years ago
Andy Wilkinson ff1d2ea381 Upgrade to Aspectj 1.9.5
Closes gh-19232
5 years ago
Andy Wilkinson 7ea088e5fb Upgrade to Activemq 5.15.11
Closes gh-19231
5 years ago
Andy Wilkinson cf80ad46e4 Upgrade to Netty Tcnative 2.0.28.Final
Closes gh-19230
5 years ago
Andy Wilkinson a2b06bbf45 Upgrade to Micrometer 1.1.9
Closes gh-19229
5 years ago
Andy Wilkinson 677f2bc80c Upgrade to Unboundid Ldapsdk 4.0.13
Closes gh-19228
5 years ago
Andy Wilkinson f451145d03 Upgrade to Couchbase Client 2.7.11
Closes gh-19227
5 years ago
Andy Wilkinson 278b5fcc7d Upgrade to Spring Hateoas 1.0.2.RELEASE
Closes gh-19223
5 years ago
Andy Wilkinson e6567a2410 Upgrade to Spring Amqp 2.2.2.RELEASE
Closes gh-19222
5 years ago
Andy Wilkinson bfb4c86801 Upgrade to Spring Data Moore-SR3
Closes gh-19069
5 years ago
Andy Wilkinson 4910ace6e5 Upgrade to Spring Kafka 2.3.4.RELEASE
Closes gh-19071
5 years ago
Madhura Bhave 68bc82cfc2 Ignore CannotLoadBeanClassException in config props validator
If the bean definition type contains a placeholder value, beanFactory.getType
can throw a CannotLoadBeanClassException. We can ignore this exception while
validating the bean definitions for constructor binding beans.

Fixes gh-19207
5 years ago
Madhura Bhave f4db8c89d4 Use generic type when binding constructor parameters
Fixes gh-19156
5 years ago
Brian Clozel 116699e295 Upgrade to Spring Framework 5.1.12.RELEASE
Closes gh-19051
5 years ago
Brian Clozel 3f798db9ed Upgrade to Spring Framework 5.2.2.RELEASE
Closes gh-19053
5 years ago
Madhura Bhave 5b461843db Merge branch '2.1.x' into 2.2.x
Closes gh-19209
5 years ago
Madhura Bhave fcc790aa15 Document how properties are applied in JPA auto-config
Closes gh-15361
5 years ago
Andy Wilkinson 189f74220c Merge branch '2.1.x' into 2.2.x
Closes gh-19190
5 years ago
Andy Wilkinson e8eace2d5b Polish "Fix Liquibase endpoint's output with multiple datasources"
See gh-19171
5 years ago
Leo Li 5302d91930 Fix Liquibase endpoint's output with multiple datasources
Previously, the endpoint used the same change log history service for
for each SpringLiquibase bean that it processed. This resulted in
pollution of the reported changes as the history of each bean was not
isolated.

This commit updates the endpoint to use a new history service for each
SpringLiquibase bean that is processed.

See gh-19171
5 years ago
dreis2211 aea37b5d81 Fix deprecation info in CompositeHealthIndicatorConfiguration
See gh-19180
5 years ago
Stephane Nicoll e02ccd16bb Merge branch '2.1.x' into 2.2.x
Closes gh-19177
5 years ago
Johnny Lim 3df9fa6228 Add missing indentations for pom.xml in doc
See gh-19170
5 years ago
Stephane Nicoll d8d7129f9d Upgrade to Reactor Dysprosium-SR2
Closes gh-19077
5 years ago
Stephane Nicoll e394772864 Upgrade to Reactor Californium-SR14
Closes gh-19052
5 years ago
Andy Wilkinson 76f03a8cad Fix reflective access to archiveBaseName property
Previously, reflective access to the archiveBaseName property
incorrectly treated the property as a String. It should have been
treated as a Property<String>. This caused an exception to be thrown
and the deprecated baseName property to be used as a fallback.

This commit corrects the reflective access to the archiveBaseName
property. It also updates the tests to fail if a build outputs a
deprecation warning. Tests that use Gradle's Maven plugin have been
updated to expect deprecation warnings when run with Gradle 6.0 where
the plugin is deprecated. Tests that configure an archive's base name
have been updated to use archiveBaseName when running with Gradle 6.0
and later.

Closes gh-18663
5 years ago
Johnny Lim f234d9c0ec Remove ConditionEvaluationReportLoggingListener usage if possible
See gh-19159
5 years ago
Stephane Nicoll ce16c9e945 Merge branch '2.1.x' into 2.2.x
Closes gh-19157
5 years ago
Stephane Nicoll 2356462587 Polish "Remove '.' and '-' reference in the EndpointId javadoc"
See gh-19101
5 years ago
Lars Grefer 58e599b6c1 Remove '.' and '-' reference in the EndpointId javadoc
Endpoint ID's which contain '-' or '.' cause a deprecation warning.
Therefore they shouldn't be doumented as valid characters.

See gh-19101
5 years ago
Andy Wilkinson f2bd27f4a3 Merge branch '2.1.x' into 2.2.x
See gh-19150
5 years ago
Andy Wilkinson f117dbe8a1 Add metadata for spring.main.log-startup.info
See gh-19026
5 years ago
Stephane Nicoll abe070051e Merge branch '2.1.x' into 2.2.x
Closes gh-19154
5 years ago
dreis2211 87caa0a331 Add missing health indicators to docs
See gh-19149
5 years ago
Madhura Bhave c10c9934dd Merge branch '2.1.x' into 2.2.x
Closes gh-19152
5 years ago
Madhura Bhave 53da8da50a Clarify contradictory advice on the use of `@PropertySource`
In general we do not recommend using @PropertySource due to them being
added to the environment too late for auto-configuration to use them. This
commit updates the documentation to mention them in the list of external
sources along with a note.

Closes gh-18900
5 years ago
Madhura Bhave d52935e103 Merge branch '2.1.x' into 2.2.x
Closes gh-19150
5 years ago
Madhura Bhave 49e111aef5 Document logging of startup info
Closes gh-19026
5 years ago
Madhura Bhave 51478cabcd Fix typo 5 years ago
Stephane Nicoll 75e8b49153 Upgrade to Maven Enforcer Plugin 3.0.0-M3
Closes gh-19140
5 years ago
Stephane Nicoll c4a646867e Upgrade to Liquibase 3.8.1
Closes gh-19139
5 years ago
Stephane Nicoll d746b7a47a Upgrade to Hibernate 5.4.9.Final
Closes gh-19138
5 years ago
Stephane Nicoll 2b0570ff10 Upgrade to Jaybird 3.0.8
Closes gh-19137
5 years ago
Stephane Nicoll 7a77474e89 Upgrade to Elasticsearch 6.8.5
Closes gh-19136
5 years ago
Stephane Nicoll 198879007b Upgrade to Jetty 9.4.24.v20191120
Closes gh-19135
5 years ago
Stephane Nicoll 5950cdda10 Upgrade to Tomcat 9.0.29
Closes gh-19134
5 years ago
Stephane Nicoll 93dd6e69a8 Upgrade to Johnzon Jsonb 1.2.2
Closes gh-19133
5 years ago
Stephane Nicoll 2a1cab4fad Upgrade to Byte Buddy 1.10.3
Closes gh-19132
5 years ago
Stephane Nicoll 7acb9f3c95 Upgrade to Undertow 2.0.28.Final
Closes gh-19131
5 years ago
Stephane Nicoll 0601aad5a7 Upgrade to Rxjava2 2.2.15
Closes gh-19130
5 years ago
Stephane Nicoll f7054d4a24 Upgrade to Netty Tcnative 2.0.27.Final
Closes gh-19129
5 years ago
Stephane Nicoll ddbd8c7eb5 Upgrade to Querydsl 4.2.2
Closes gh-19128
5 years ago
Stephane Nicoll cc29054c0b Upgrade to Appengine Sdk 1.9.77
Closes gh-19127
5 years ago
Stephane Nicoll 7374895507 Upgrade to Jackson 2.10.1
Closes gh-19126
5 years ago
Stephane Nicoll 901b8dab14 Upgrade to Couchbase Client 2.7.10
Closes gh-19125
5 years ago
Stephane Nicoll 01e0a27159 Upgrade to Maven Enforcer Plugin 3.0.0-M3
Closes gh-19124
5 years ago
Stephane Nicoll a1884d2c10 Upgrade to Hibernate 5.3.14.Final
Closes gh-19123
5 years ago
Stephane Nicoll 90acbb124a Upgrade to Jaybird 3.0.8
Closes gh-19122
5 years ago
Stephane Nicoll f83b08eb59 Upgrade to Jetty 9.4.24.v20191120
Closes gh-19121
5 years ago
Stephane Nicoll f64c6fc0c3 Upgrade to Tomcat 9.0.29
Closes gh-19120
5 years ago
Stephane Nicoll 4a76787c60 Upgrade to Undertow 2.0.28.Final
Closes gh-19119
5 years ago
Stephane Nicoll 1387067208 Upgrade to Rxjava2 2.2.15
Closes gh-19118
5 years ago
Stephane Nicoll ab6d163f73 Upgrade to Netty Tcnative 2.0.27.Final
Closes gh-19117
5 years ago
Stephane Nicoll 4868124371 Upgrade to Querydsl 4.2.2
Closes gh-19116
5 years ago
Stephane Nicoll 3a86a6922c Upgrade to Appengine Sdk 1.9.77
Closes gh-19115
5 years ago
Stephane Nicoll 49433ccef1 Upgrade to Couchbase Client 2.7.10
Closes gh-19114
5 years ago
Stephane Nicoll a4ca1d02b3 Merge branch '2.1.x' into 2.2.x
Closes gh-19112
5 years ago
Stephane Nicoll 5d8fe860d7 Polish "Use ssl.enabled flag when RabbitMQ address has no protocol"
There is a direct link between the sslEnabled flag and the default port
that should be used by an address. The checks are currently set in two
places:

* Determine which port should be used
* Determine if SSL should be enabled

This commit polishes the initial proposal so that secureConnection is
only set if a protocol is available.

See gh-19109
5 years ago
cbono 2210236f82 Use ssl.enabled flag when RabbitMQ address has no protocol
See gh-19109
5 years ago
thelproad 65ab82b3cd Remove redundant code
See gh-19000
5 years ago
Brian Clozel 0c5bb60384 Fix responseCommitted test in webflux error handling
This commit updates the `responseCommitted` after changes were made in
`WebTestClient` with spring-projects/spring-framework#24051.

Fixes gh-19083
5 years ago
Stephane Nicoll 58bfbb92b9 Merge branch '2.1.x' into 2.2.x
Closes gh-19091
5 years ago
Adam Michalik c154a014a1 Remove invalid example of spring.mvc.async.request-timout property
See gh-19057
5 years ago
dreis2211 0bdcd2ee67 Handle ApiVersion in CachingOperationInvoker
Prior to this commit, ApiVersion was treated as a mandatory parameter in
CachingOperationInvokerAdvisor and thus prevented the
CachingOperationInvoker to kick in. By skipping ApiVersion in the same
way we're skipping SecurityContext we can avoid this.

In order to not return the same cached response, this commit also
changes the cache handling in CachingOperationInvoker to account for
different ApiVersions being passed.

See gh-18961
5 years ago
dreis2211 347434ba81 Test the Gradle Plugin against Gradle 6.0.1
See gh-19065
5 years ago
Stephane Nicoll d8c64abdbb Merge branch '2.1.x' into 2.2.x
Closes gh-19086
5 years ago
Stephane Nicoll b23a3712c6 Polish "Fix logging in CloudFoundryVcapEnvironmentPostProcessor"
See gh-19027
5 years ago
Mark Bigler f1489e41ec Fix logging in CloudFoundryVcapEnvironmentPostProcessor
See gh-19027
5 years ago
Brian Clozel 9fe721d75c Temporarily ignore failing error web handler test
See gh-19083
5 years ago
Madhura Bhave 8ec3ca74e1 Fix loading of devtools yaml files
Fixes gh-19081
5 years ago
Stephane Nicoll 9c4136898d Start building against Spring Data Moore-SR3 snapshots
See gh-19069
5 years ago
Stephane Nicoll 511c75cbe8 Start building against Spring Framework 5.2.2 snapshots
See gh-19053
5 years ago
Stephane Nicoll 13f4e8a591 Start building against Reactor Dysprosium-SR2 snapshots
See gh-19054
5 years ago
Stephane Nicoll 3c3614d8ef Start building against Spring Batch 4.1.3 snapshots
See gh-19072
5 years ago
Stephane Nicoll 6fa5f0c1d0 Start building against Spring Data Lovelace-SR14 snapshots
See gh-19068
5 years ago
Stephane Nicoll 80eaa16b0d Start building against Spring Framework 5.1.12 snapshots
See gh-19051
5 years ago
Stephane Nicoll 586a5d2c14 Start building against Reactor Californium-SR14 snapshots
See gh-19068
5 years ago
Madhura Bhave 6e22ddc1a6 Merge branch '2.1.x' into 2.2.x 5 years ago
Madhura Bhave 849a76c6c2 Polish 5 years ago
Madhura Bhave ff22bd4827 Merge branch '2.1.x' into 2.2.x
Closes gh-19059
5 years ago
Madhura Bhave a3a53d299f Check authorities when exposing health details
Fixes gh-18998
5 years ago
Stephane Nicoll a003a5c8ab Upgrade to Kotlin 1.3.60
Closes gh-19046
5 years ago
Stephane Nicoll 3d418263bc Merge branch '2.1.x' into 2.2.x
Closes gh-19032
5 years ago
dreis2211 355505d236 Fix syntax error in configuration metadata sample in docs
See gh-19028
5 years ago
Stephane Nicoll b842f16848 Polish "Use caps in docker file example for consistency"
See gh-19029
5 years ago
Dave Syer b95e8a4df6 Use caps in docker file example for consistency
See gh-19029
5 years ago
Madhura Bhave b6ff0b7c5f Support constructor binding on 3rd party classes
Closes gh-18935
5 years ago
Stephane Nicoll d08b436735 Polish "Improve Deploying to Containers section"
See gh-18932
5 years ago
Guillaume Lours 6cf05aeb50 Improve Deploying to Containers section
See gh-18932
5 years ago
Johnny Lim 96a029e44f Polish a test name
See gh-18999
5 years ago
Johnny Lim ddb22f5a52 Polish test methods
See gh-18962
5 years ago
dreis2211 6b500d82b4 Polish
See gh-18918
5 years ago
Stephane Nicoll 51487c7c45 Merge branch '2.1.x' into 2.2.x 5 years ago
Stephane Nicoll cad2365237 Polish 5 years ago
Andy Wilkinson 379ba0dc00 Support Gradle 6.0
Previously, our Gradle plugin was not tested against Gradle 6.0,
a number of deprecation warnings were output when using the plugin
with Gradle 6, and some functionality related to the application
plugin did not work as expected.

This commit tests the plugin against Gradle 6. It also avoids calling
deprecated APIs. The plugin is compatibile against Gradle 4.10 where
the deprecated APIs' replacements are not available so reflection is
used to call the replcaements. Lastly, the way in which the base name
of the boot distribution that is created when the application plugin
is applied has been modified to ensure that it is effective when using
Gradle 6.

Closes gh-18663
5 years ago
Madhura Bhave f9dc81558a Remove samples references from docs
Fixes gh-18904
5 years ago
Andy Wilkinson e715a5f689 Merge branch '2.1.x' into 2.2.x
Closes gh-18943
5 years ago
Andy Wilkinson 3f0367e2dd Apply changes recommended by Jetty team to JettyEmbeddedErrorHandler
Closes gh-18842
5 years ago
Andy Wilkinson fc3f6a930d Merge branch '2.1.x' into 2.2.x
Closes gh-18940
5 years ago
Andy Wilkinson 5765cfe010 Allow 5 seconds for child to handle SIGINT before destroying it
Previously, when RunProcess handled a SIGINT it would immediately
attempt to destroy the process that it had run. This created a race
condition between the SIGINT being handled by the child process
and RunProcess destroying the child. The exact behavior of destroy
is implementation dependent and it may result in forcible termination
of the process where shutdown hooks are not called. This is what
happens on Windows. The exit code in such a case is 1 which prevents
anything from waiting for the process to complete from detecting
that it ended as a result of a SIGINT, leaving it with no choice but
to report an error. This is what happens with mvn spring-boot:run
with a forked process on Windows and results in the build failing.

This commit updates RunProcess to allow the child process to handle
the SIGINT itself, waiting for up to five seconds for that to happen
before the process is then destroyed. Given this time, the child
process exits with 130 which RunMojo already handles correctly as
indicating that the process died due to SIGINT and the build completes
with success as a result.

Fixes gh-18936
5 years ago
Stephane Nicoll 08067fb816 Polish "Remove reference to ConfigurationPropertiesScan in javadoc"
See gh-18920
5 years ago
wonwoo 92b00255a1 Remove reference to ConfigurationPropertiesScan in javadoc
See gh-18920
5 years ago
Andy Wilkinson 0a8a0daff8 Merge branch '2.1.x'
Closes gh-18913
5 years ago
Andy Wilkinson a11661d284 Trim whitespace in BasicJsonParser
Previously, whitespace in between the keys and values in the JSON was
not trimmed correctly in BasicJsonParser which lead to it incorrectly
parsing JSON with whitespace between the opening of a list ([) and the
opening of a map ({).

This commit updates the parser to trim unwanted whitespace and adds a
test to AbstractJsonParserTests to verify the whitespace handling
behaviour across all JsonParser implementations.

Closes gh-18911
5 years ago
Andy Wilkinson dd4377e69c Merge branch '2.1.x'
Closes gh-18912
5 years ago
Andy Wilkinson d1ead884c4 Fix @ServletComponentScan with a component index
Previously @ServletComponentScan did not work when there was a
component index on the classpath as it made an assumption about
the concrete type of the BeanDefinitions produced by scanning that
does not hold true when an index is present.

This commit updates the scanning and the handlers to correct the
assumpution by working with a bean definition type that is produced
by scanning both when there is and when there is not an index present.

To prevent the problem from reoccuring, a test that uses and index
has been added and the import of ScannedGenericBeanDefinition is now
prohibited by Checkstyle.

Closes gh-18910
5 years ago
Stephane Nicoll 86a1c96224 Make sure health endpoint is available with no contributor
This commit makes sure that the health endpoint returns a default health
status when no contributors are available. Previously, it was returning
`null` which leads to a 404 when exposed via HTTP.

Closes gh-18676
5 years ago
Stephane Nicoll 684d7cfe38 Upgrade to Mongodb 3.11.2
Closes gh-18898
5 years ago
Stephane Nicoll c413e5b54e Upgrade to Hazelcast 3.11.5
Closes gh-18897
5 years ago
Johnny Lim ea51947741 Use try-with-resources blocks in JarFileArchiveTests
See gh-18883
5 years ago
Madhura Bhave 471ca01ccf Do not validate value object bean definion when singleton present
Prior to this commit constructor bound configuration properties could
not be mocked because it would fail validation from
ConfigurationPropertiesBeanDefinitionValidator. The MockitoPostProcessor
registers the mocked bean as a singleton and validation can be skipped if a
singleton for the type is found in the bean factory.

Fixes gh-18652
5 years ago
Madhura Bhave f9785d2bda Fix constructor binding issues
This commit fixes a few bugs related to constructor binding.
The ContructorFilter on the Bindable has been replaced with a
Binder level BinderConstructorProvider so that it can be used to
determine the constructor to use for nested properties as well.

Fixes gh-18810
Fixes gh-18670
Closes gh-18685
Closes gh-18894

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
5 years ago
Phillip Webb 90e1046d53 Upgrade to Spring Kafka 2.3.3.RELEASE
Closes gh-18892
5 years ago
Andy Wilkinson f1af8c5510 Merge branch '2.1.x'
Closes gh-18889
5 years ago
Andy Wilkinson 59bc3c5602 Prevent recursive config props from causing a stack overflow
Previously, when the configuration properties annotation processor
encountered a property that was the same as an outer type that had
already been processed, it would fail with a stack overflow error.

This commit introduces the use of a stack to track the types that
have been processed. Types that have been seen before are skipped,
thereby preventing a failure from occurring. We do not fail upon
encountering a recursive type to allow metadata generation to
complete. At runtime, the recursive property will not cause a problem
if it is not bound.

Fixes gh-18365
5 years ago
Andy Wilkinson d8545bdead Merge branch '2.1.x'
Closes gh-18887
5 years ago
Andy Wilkinson 8b62f448ba Improve documentation on using Jersey alongside Spring MVC
Previously, the documentation did not provide any guidance on using
Jersey alongside Spring MVC or any other web framework.

This improves the documentation in two ways:

1. It notes that, in the presence of both Jersey and Spring MVC, the
   Actuator will prefer Spring MVC for exposing HTTP endpoints.
2. It adds a how-to describing how to configure Jersey to forward
   requests for which it has no handler on to the rest of the filter
   chain. When Spring MVC is the other framework, this allows them to
   be handled by its dispatcher servlet.

Closes gh-17523
5 years ago
Andy Wilkinson 571e4640de Merge branch '2.1.x'
Closes gh-18877
5 years ago
Andy Wilkinson bd06a91ac0 Recommend more overrides when using starter parent
This commit is a continuation of the work done in 987a5f81. In
addition to developers and licenses that are covered in the earlier
commit, a number of other settings are still inherited from the
starter parent. This commit updates the documentation to show them
being overridden as well.

Closes gh-18532
5 years ago
Stephane Nicoll d331f28222 Merge branch '2.1.x'
Closes gh-18885
5 years ago
dreis2211 1b2112ea8c Reduce method visibility in EndpointDiscovererTests
See gh-18884
5 years ago
Stephane Nicoll 4d1373c94d Polish "Support amqps:// URIs in spring.rabbitmq.addresses"
See gh-18808
5 years ago
Mark Pollack 0fedb24c6f Support amqps:// URIs in spring.rabbitmq.addresses
See gh-18808

Co-Authored-By: Bryan Kelly <xyloman@gmail.com>
5 years ago
Andy Wilkinson 49566edf6c Reduce visibility of test methods 5 years ago
Andy Wilkinson ce01f7f150 Merge branch '2.1.x'
Closes gh-18882
5 years ago
Andy Wilkinson ed50bf2494 Honour EndpointFilter configured on an endpoint's superclass
Previously, @EndpointFilter would only have an effect when used as
an annotation or meta-annotation on the endpoint class itself. It
would have no effect when used on a super-class of the endpoint
bean's class.

This commit updates EndpointDiscoverer so that an @EndpointFilter
annotation or meta-annotation on a super-class will be found and
applied to the discovery process. This is achieved by using find…
rather than get… when retrieving the attributes for the EndpointFilter
annotation.

Fixes gh-17866
5 years ago
Andy Wilkinson a65374b16b Merge branch '2.1.x'
Closes gh-18880
5 years ago
Andy Wilkinson cb76502a44 Document that JUL is not bridged into SLF4J when deployed to a container
Closes gh-16062
5 years ago
Andy Wilkinson 2c309c5d93 Merge branch '2.1.x'
Closes gh-18879
5 years ago
Andy Wilkinson 1c6f2af475 Clarify how to configure a Filter's order
Closes gh-18266
5 years ago
Andy Wilkinson 63dd159935 Merge branch '2.1.x'
Closes gh-18878
5 years ago
Andy Wilkinson 69a95ce5c1 Allow dependsOn relationships created by post-processor to be overridden
Previously, AbstractDependsOnBeanFactoryPostProcessor was unordered
which meant that it was impossible to guarantee that another bean
factory post-processor would run after it. This prevented overriding
of the dependsOn relationships that is creates.

This commit updates AbstractDependsOnBeanFactoryPostProcessor to give
it a default order of zero. This will allow additional bean factory
post-processors to be configured with a lower precedence order (values
greater than 0) so that they run after any
AbstractDependsOnBeanFactoryPostProcessor and can override the
dependencies that it has configured.

Fixes gh-18362
5 years ago
Andy Wilkinson abeafb325e Merge branch '2.1.x'
Closes gh-18877
5 years ago
Andy Wilkinson 987a5f8103 Recommend overriding licences and developers when using starter parent
Publishing to Maven Central requires spring-boot-starter-parent to
declare its license and developers. When a user then uses
spring-boot-starter-parent as their project's parent, these values
are inherited and this is almost certainly unwanted.

This commit updates the documentation to recommend and demonstrate
overriding the license and developers that are inherited from the
starter parent.

Closes gh-18532
5 years ago
Andy Wilkinson 36b1f65056 Merge branch '2.1.x'
Closes gh-18876
5 years ago
Andy Wilkinson 89e050d722 Document security risks of DevTools' remote support more clearly
Previously, the security risks and our recommendations on how to
mitigate them were not documented as clearly as they could have been.
This commit makes some changes to try to address this:

1. The security risk is now noted at the beginning of the section
2. The recommendation to use SSL is now documented more prominently
   and an alternative recommendation to only use remote support on
   a trusted network has been added.
3. The example secret has been removed to prevent copy and paste
4. A recommendation to use a secret that is unique and strong has been
   added

Closes gh-18825
5 years ago
dreis2211 689e02923f Remove non-existent FailureAnalyzer from spring.factories
See gh-18864
5 years ago
Stephane Nicoll da24a66ce6 Merge branch '2.1.x'
Closes gh-18875
5 years ago
Stephane Nicoll 5863a75c3c Polish "Document Settings as jooq supported auto-configuration type"
See gh-18870
5 years ago
Jens Teglhus Møller c34516cd9e Document Settings as jooq supported auto-configuration type
See gh-18870
5 years ago
Andy Wilkinson c2e11da5ba Upgrade to Spring Integration 5.2.1.RELEASE
Closes gh-18764
5 years ago
Andy Wilkinson de0e8b87d1 Upgrade to Spring Integration 5.1.9.RELEASE
Closes gh-18763
5 years ago
Andy Wilkinson 4b25339d57 Upgrade to Spring Security 5.1.7.RELEASE
Closes gh-18874
5 years ago
Andy Wilkinson c430035450 Upgrade to Spring Security 5.2.1
Closes gh-18869
5 years ago
Andy Wilkinson afbf256955 Upgrade to Micrometer 1.3.1
Closes gh-18867
5 years ago
Andy Wilkinson 377a8ee7cc Upgrade to Spring Kafka 2.3.2.RELEASE
Closes gh-18766
5 years ago
Andy Wilkinson b772d81f3a Upgrade to Spring AMQP 2.2.1.RELEASE
Closes gh-18762
5 years ago
Andy Wilkinson 8eb2146158 Upgrade to Spring Ws 3.0.8.RELEASE
Closes gh-18866
5 years ago
Andy Wilkinson c5eaf645d5 Upgrade to Spring Kafka 2.2.11.RELEASE
Closes gh-18765
5 years ago
Andy Wilkinson 4ffd44a235 Upgrade to Spring Ws 3.0.8.RELEASE
Closes gh-18865
5 years ago
Andy Wilkinson ea5fa2ccac Upgrade to Slf4j 1.7.29
Closes gh-18863
5 years ago
Andy Wilkinson 6731ad8197 Upgrade to Jooq 3.12.3
Closes gh-18862
5 years ago
Andy Wilkinson 949e3d930f Upgrade to Rxjava2 2.2.14
Closes gh-18861
5 years ago
Andy Wilkinson d75b855852 Upgrade to Spring AMQP 2.12.RELEASE
Closes gh-18761
5 years ago
Andy Wilkinson 1dc2768198 Upgrade to Slf4j 1.7.29
Closes gh-18860
5 years ago
Andy Wilkinson bf63d66131 Upgrade to Rxjava2 2.2.14
Closes gh-18859
5 years ago
Andy Wilkinson 8cdcafa43b Upgrade to Micrometer 1.1.8
Closes gh-18858
5 years ago
Andy Wilkinson 23130e1140 Upgrade to Spring Hateoas 1.0.1.RELEASE
Closes gh-18856
5 years ago
Andy Wilkinson 20ae19f0ba Upgrade to Spring Data Moore-SR1
Closes gh-18744
5 years ago
Andy Wilkinson ae5f2d7725 Do not require aspectjweaver to enable CGLib-based proxies
Previously, AopAutoConfiguration would only enable CGLib-based
proxies if aspectjweaver was on the classpath. The intention was for
CGLib-based proxies to always be used by default so this behaviour
was incorrect.

This commit updates AopAutoConfiguration to force the use of
CGLib-based proxies even in the absence of aspectjweaver.

Closes gh-18523
5 years ago
Andy Wilkinson 07ca7747fa Clarify what an endpoint needs to be auto-configured
Previously, the endpoint tables in the documentation include an
"Enabled by default" column that listed whether or not an endpoint
was enabled by default. This resulted in some confusion as an endpoint
could be listed as being enabled by default but not actually be
enabled as the requirements for it being auto-configured has not been
met.

This commit removes the "Enabled by default" column and replaces it,
where needed, with some extra information in the "Description"
column that describes what is needed for the endpoint to be
auto-configured.

Closes gh-18633
5 years ago
Andy Wilkinson e26d5d95a8 Do not enable @ConfigurationPropertiesScan be default
In 2.2.0, @ConfigurationPropertiesScan was enabled by default.
Unfortunately, this had the unexpected side-effect of breaking
conditional enablement of a @ConfigurationProperties class via
@EnableConfigurationProperties if the @ConfigurationProperties class
was in a package covered by scanning.

This commit remove @ConfigurationPropertiesScan from
@SpringBootApplication so that it is no longer enabled by default.
2.1.x users who rely upon such conditional enablement of
@ConfigurationProperties classes can now upgrade to 2.2.x without
having to make any changes. Users who do not have such a need and are
in a position to use configuration properties scanning can now opt-in
by adding @ConfigurationPropertiesScan to their main application class
alongside @SpringBootApplication.

Closes gh-18674
5 years ago
Andy Wilkinson 8aaba58cca Upgrade to Spring Data Lovelace-SR12
Closes gh-18743
5 years ago
Andy Wilkinson 9ed4207f0c Make TypeExcludeFilters public so they can be composed with user's own
Previously, all of the type exclude filters in
spring-boot-test-autoconfigure were package-private. This prevent a
user who was creating their own test slice from composing their own
TypeExcludeFilter with one of Boot's.

This commit updates all of the TypeExcludeFilters in the
test-autoconfigure module to make them public. The intention is only
to allow them to be composed with other type exclude filters when
referenced in a @TypeExcludeFilters annotation. Therefore, each
filter class is declared final and their constructors remain
package-private.

Closes gh-18746
5 years ago
wycm 363399ce4a Add missing reference to HazelcastHealthContributorAutoConfiguration
See gh-18847
5 years ago
Stephane Nicoll b951e70d18 Merge branch '2.1.x'
Closes gh-18850
5 years ago
dreis2211 8955d5c1b5 Test the Gradle Plugin against Gradle 5.6.4
See gh-18845
5 years ago
Stephane Nicoll 733467ebf7 Upgrade to Spring Framework 5.2.1
Closes gh-18733
5 years ago
Stephane Nicoll 986a74f0f4 Upgrade to Spring Framework 5.1.11
Closes gh-18737
5 years ago
Stephane Nicoll 02153f36ed Upgrade to Elasticsearch 6.8.4
Closes gh-18798
5 years ago
Jaeyeon Kim 008a6fa7c1 Add reference to Armeria starter
See gh-18837
5 years ago
Johnny Lim 45d85778b8 Polish
See gh-18838
5 years ago
larrywest 82a41a3ed0 Remove unnecessary log4j exclusion
See gh-18833
5 years ago
Brian Clozel b7f59eb7cb Add config property for webflux codec maxInMemorySize
This commit creates a new configuration property
`spring.codec.max-in-memory-size` which configures the maximum
amount of data to be buffered in memory by codecs (both client and
server).

This property has no default value - it will let Spring Framework handle
the default behavior, currently enforcing a 256KB for provided codecs.

Fixes gh-18828
5 years ago
Stephane Nicoll 2d0a235c52 Add "Deploying to Containers" dedicated section
Closes gh-18818
5 years ago
Stephane Nicoll f56b32b0c9 Upgrade to Neo4j Ogm 3.2.2
Closes gh-18824
5 years ago
Stephane Nicoll 434224aca7 Upgrade to Flyway 6.0.8
Closes gh-18823
5 years ago
Stephane Nicoll b5e08b54ac Upgrade to Lettuce 5.2.1.RELEASE
Closes gh-18822
5 years ago
Stephane Nicoll 99d0002f28 Upgrade to Hazelcast 3.12.4
Closes gh-18821
5 years ago
Phillip Webb ae5ae72889 Add and adapt reactive health contributors
Update `HealthEndpointConfiguration` to also include adapted reactive
health contributors when project reactor is on the classpath. Prior to
this commit, reactive contributors were only exposed in WebFlux
applications. This was a regression from Spring Boot 2.1 that we didn't
catch because all our own reactive contributors all have non-reactive
equivalents.

Closes gh-18805
5 years ago
Phillip Webb b3e9a06476 Polish 5 years ago
Stephane Nicoll 7f509bf84e Make sure Web infrastructure uses qualified beans
This commit is a follow-up of a change in Spring Framework[1] to make
sure injection points that are expecting a specific bean by name use
a qualifier.

As a result of this change, MVC uses the dedicated MVC validator again
rather than the general one auto-configured by Spring Boot.

[1] https://github.com/spring-projects/spring-framework/issues/23887

Closes gh-18672
5 years ago
Stephane Nicoll 3236dfd7d9 Upgrade to Jooq 3.12.2
Closes gh-18802
5 years ago
Stephane Nicoll b12acccc96 Upgrade to Hibernate Validator 6.0.18.Final
Closes gh-18801
5 years ago
Stephane Nicoll 906d3a122e Upgrade to Hibernate 5.4.8.Final
Closes gh-18800
5 years ago
Stephane Nicoll 241df7cebe Upgrade to Flyway 6.0.7
Closes gh-18799
5 years ago
Stephane Nicoll 40ee1a7942 Upgrade to Jetty 9.4.22.v20191022
Closes gh-18797
5 years ago
Stephane Nicoll 57dff85a46 Upgrade to Kafka 2.3.1
Closes gh-18796
5 years ago
Stephane Nicoll b7d32ee3f8 Upgrade to Byte Buddy 1.10.2
Closes gh-18795
5 years ago
Stephane Nicoll 83d2ef2c96 Upgrade to Joda Time 2.10.5
Closes gh-18794
5 years ago
Stephane Nicoll 8e66c3baad Upgrade to Dropwizard Metrics 4.1.1
Closes gh-18793
5 years ago
Stephane Nicoll 007b5708be Upgrade to Classmate 1.5.1
Closes gh-18792
5 years ago
Stephane Nicoll 436f03ec17 Upgrade to Neo4j Ogm 3.1.15
Closes gh-18791
5 years ago
Stephane Nicoll a31cda5cde Upgrade to Mimepull 1.9.12
Closes gh-18790
5 years ago
Stephane Nicoll 71d78ec9a3 Upgrade to Hibernate Validator 6.0.18.Final
Closes gh-18789
5 years ago
Stephane Nicoll cd702a59f0 Upgrade to Hibernate 5.3.13.Final
Closes gh-18788
5 years ago
Stephane Nicoll 004fd06e38 Upgrade to Jetty 9.4.22.v20191022
Closes gh-18787
5 years ago
Stephane Nicoll bddb5f3e2c Upgrade to Tomcat 9.0.27
Closes gh-18786
5 years ago
Stephane Nicoll 1ba2a491fe Upgrade to Mysql 8.0.18
Closes gh-18785
5 years ago
Stephane Nicoll a751e6540c Upgrade to Joda Time 2.10.5
Closes gh-18784
5 years ago
Stephane Nicoll dc2b610c44 Upgrade to Undertow 2.0.27.Final
Closes gh-18783
5 years ago
Stephane Nicoll 362c885557 Upgrade to Rxjava2 2.2.13
Closes gh-18782
5 years ago
Stephane Nicoll 1b32436813 Upgrade to Dropwizard Metrics 4.0.7
Closes gh-18781
5 years ago
Stephane Nicoll 4bd980868d Upgrade to Unboundid Ldapsdk 4.0.12
Closes gh-18780
5 years ago
Stephane Nicoll df0c5beb47 Upgrade to Gson 2.8.6
Closes gh-18779
5 years ago
Stephane Nicoll 97d8754730 Upgrade to Jackson 2.9.10.20191020
Closes gh-18778
5 years ago
Stephane Nicoll 2ceffcee14 Start building against Spring Data Moore-SR1 snapshots
See gh-18744
5 years ago
Stephane Nicoll a315d4229d Start building against Spring Data Lovelace-SR12 snapshots
See gh-18743
5 years ago
Stephane Nicoll a83852b7cc Consistently clean actuator endpoint ids
Closes gh-18649
5 years ago
Stephane Nicoll d6d32ec01d Polish 5 years ago
Stephane Nicoll 11e0045ec6 Polish contribution
See gh-18736
5 years ago
mattisonchao f61da8b723 Polish
See gh-18736
5 years ago
Stephane Nicoll 7827d1261e Start building against Spring Kafka 2.3.2 snapshots
See gh-18766
5 years ago
Stephane Nicoll 58e67adf46 Start building against Spring Integration 5.2.1 snapshots
See gh-18764
5 years ago
Stephane Nicoll c86655a24e Start building against Spring AMQP 2.2.1 snapshots
See gh-18762
5 years ago
Stephane Nicoll 217c07a701 Start building against Spring Kafka 2.2.11 snapshots
See gh-18765
5 years ago
Stephane Nicoll 72f63fad5c Start building against Spring Integration 5.1.9 snapshots
See gh-18763
5 years ago
Stephane Nicoll d4c4a4c584 Start building against Spring AMQP 2.1.12 snapshots
See gh-18761
5 years ago
Andy Wilkinson 0b1966d086 Upgrade to Reactor Dysprosium-SR1
Closes gh-18741
5 years ago
Andy Wilkinson b450116cce Upgrade to Reactor Californium-SR13
Closes gh-18739
5 years ago
Stephane Nicoll d7652e8f14 Make sure Reactive health indicators take precedence
This commit restores the highest precedence of reactive
HealthContributor over imperative one. Previously, both would be
registered, leading to duplicate entries in health output.

Closes gh-18748
5 years ago
Stephane Nicoll a664eadb9a Merge branch '2.1.x'
Closes gh-18756
5 years ago
wwjay9 bd77c170f2 Fix OAuth2 Client redirect-uri references
See gh-18752
5 years ago
Cosmin Humeniuc d8d24e75e3 Delete Javadoc references to removed code
See gh-18755
5 years ago
dreis2211 9ece2e277f Remove redundant explicit types
See gh-18754
5 years ago
wonwoo 3369d80f3f Polish OnBeanCondition message
See gh-18727
5 years ago
dreis2211 911b12f28d Fix JsonParser deprecation
See gh-18750
5 years ago
Madhura Bhave 4058f99383 Fix import 5 years ago
Madhura Bhave dec6ee20d4 Fix error message when constructor binding fails to create bean
The configuration property is always cleared before bean instantiation
because the problem with bean instantiation might not necessarily be the
last bound property.

Fixes gh-18704
5 years ago
Andy Wilkinson 533ca0624f Merge branch '2.1.x'
Closes gh-18749
5 years ago
Andy Wilkinson 65ef03a5bf Remove nulls from description for bean defs with no res description
Previously, if a bean definition had no resource description, the
failure analysis description would state that the been had been
defined in null which was of no use to the user.

This commit updates the failure analysis to omit information about
where the bean was definied when the definition has no resource
description.

Fixes gh-18721
5 years ago
Stephane Nicoll 3885c6a448 Start building against Reactor Dysprosium-SR1 snapshots
See gh-18741
5 years ago
Stephane Nicoll 4aa3c8d2fd Upgrade to Netty 4.1.43.Final
Closes gh-18742
5 years ago
Stephane Nicoll 8d4aeb1a55 Start building against Californium-SR13 snapshots
See gh-18739
5 years ago
Stephane Nicoll cff570f65c Upgrade to Netty 4.1.43.Final
Closes gh-18740
5 years ago
Stephane Nicoll ff878ca6a6 Start building against Spring Framework 5.1.11 snapshots
See gh-18737
5 years ago
Madhura Bhave 25077de0b3 Merge branch '2.1.x'
Closes gh-18735
5 years ago
Madhura Bhave 593eca7998 Emphasize need for quotes around YAML bracket notation
Closes gh-18690
5 years ago
Madhura Bhave bc3c3232c2 Merge branch '2.1.x'
Closes gh-18734
5 years ago
Madhura Bhave e59a643e20 Emphasize the need of @Valid on nested configuration properties
Closes gh-18198
5 years ago
Phillip Webb d73a579dde Move to Spring Framework 5.2.1 SNAPSHOT
See gh-18733
5 years ago
Stephane Nicoll 3d253854e9 Handle constructor bound configuration properties in /configprops
This commit updates the configprops actuator endpoint to detect
configuration properties that are bound using a constructor.

Closes gh-18636
5 years ago
Stephane Nicoll b60549d6ca Upgrade to H2 1.4.200
Closes gh-18724
5 years ago
Stephane Nicoll 6806c54110 Upgrade to Quartz 2.3.2
Closes gh-18725
5 years ago
Andy Wilkinson 9b039c491f Merge branch '2.1.x'
Closes gh-18726
5 years ago
Andy Wilkinson d4cd03ebd8 Document need for micrometer-jersey2 dependency to get Jersey metrics
Closes gh-18622
5 years ago
Andy Wilkinson 847ec3c0e1 Add missing %s to warning message format string
Closes gh-18710
5 years ago
Stephane Nicoll 5be562440c Upgrade to H2 1.4.200
Closes gh-18593
5 years ago
Stephane Nicoll c63630d94e Upgrade to Quartz 2.3.2
Closes gh-18723
5 years ago
Phillip Webb 597baf9774 Polish "Optimize logger calls"
See gh-18710
5 years ago
wycm 240b1f9e29 Optimize logger calls
Guard logger calls to ensure that they are only made when the
level is set.

See gh-18710
5 years ago
Phillip Webb 744dcd9426 Limit ConfigurationPropertiesBean candidates
Update `ConfigurationPropertiesBean.getAll()` to limit the candidate
beans that will actually need a `getBean()` call. Prior to this commit
calling `getAll()` would trigger a get of every bean in the context,
some of which might fail.

Fixes gh-18714
5 years ago
Philippe De Neve 8f990d97ab Polish documentation
* Remove double occurrence of InfluxDbHealthIndicator.
* Fix JUnit 5 `@ExtendWith` references
* Use consistent casing of HtmlUnit.

See gh-18718
5 years ago
Phillip Webb c5138c56ff Restore AbstractRoutingDataSource health support
Update `DataSourceHealthContributorAutoConfiguration` so that any
`AbstractRoutingDataSource` beans are still included in the overall
health. Prior to this commit, a regression in Spring Boot 2.2 meant
that if a single routing bean was found an `IllegalArgumentException`
would be thrown.

In Spring Boot 2.1 all `AbstractRoutingDataSource` would be filtered
from the results, but if no results existed the following was returned:

  "details": {
    "db": {
      "status": "UNKNOWN"
    },

In Spring Boot 2.2 we now always include routing datasource beans, even
if other non-routing database beans are found. The health details
includes `"routing" : true` to help users disambiguate any results.

Fixes gh-18661
5 years ago
Phillip Webb ba30ee03df Improve health contributor null support
Update `NamedContributorsMapAdapter` to check for `null` keys or values
during construction. Also update `HealthEndpointSupport` to allow
null component entries.

See gh-18687
5 years ago
Phillip Webb 7c9ac03014 Filter empty health contributions
Update `HealthEndpointSupport` so that aggregate elements that don't
ultimately provide a contribution are filtered out. Prior to this
commit an NPE was returned when calculating the aggregate status.

Fixes gh-18687
5 years ago
Alessandro Falappa 2c199b1296 Make optimizedLaunch property name more consistent
See gh-18702
5 years ago
Stephane Nicoll 8eecc911fb Merge branch '2.1.x'
Closes gh-18713
5 years ago
nkjackzhang 6ef39d6b91 Fix typos
See gh-18705
5 years ago
Johnny Lim 8c2d6b28f8 Polish
See gh-18697
5 years ago
dreis2211 8ecdf919f8 Fix Mockito deprecations
See gh-18689
5 years ago
Phillip Webb 511a2a073f Merge branch '2.1.x'
Closes gh-18695
5 years ago
Rafiullah Hamedy 81dc6e02e6 Rename `max-http-post-size` server property
Rename `max-http-post-size` to `max-http-form-post-size` for Jetty and
Tomcat to make it clearer that they only apply to POSTed form content.

See gh-18566
5 years ago
Phillip Webb 83d4d94e8b Cache ModifiedClassPathClassLoaders
Closes gh-18694
5 years ago
Phillip Webb 8d08d654d1 Merge branch '2.1.x'
Closes gh-18693
5 years ago
Phillip Webb d0d55d3c0a Polish "Upgrade to Jetty 9.4.21.v20190926"
See gh-18536
5 years ago
dreis2211 eae2cf170d Upgrade to Jetty 9.4.21.v20190926
See gh-18536
5 years ago
Phillip Webb 374a8cadad Merge branch '2.1.x'
Closes gh-18691
5 years ago
Phillip Webb 867c4a14cb Clarify Javadoc for ServletContextInitializer
Closes gh-18660
5 years ago
Phillip Webb 714c9b9804 Polish 5 years ago
Stephane Nicoll 89d903d89a Fix typo in devtools example
Closes gh-18679
5 years ago
Stephane Nicoll dccb842286 Polish "Apply dependsOn semantic between Liquibase and JPA"
See gh-18673
5 years ago
Dmytro Nosan bacd36f0cf Apply dependsOn semantic between Liquibase and JPA
This commits restores the dependency between Liquibase and the JPA
EntityManager even if a custom `SpringLiquibase` is configured.

See gh-18673
5 years ago
Stephane Nicoll d254c62712 Polish tests 5 years ago
Stephane Nicoll 6e6f4f763c Remove useless attribute override
This commit removes the override proxyBeanMethods as the aliased
attribute is taking precedence.
5 years ago
Stephane Nicoll 4d5d90847e Merge branch '2.1.x'
Closes gh-18682
5 years ago
wycm 681a94b0d5 Optimize debug level logs
See gh-18604
5 years ago
Stephane Nicoll c05f88bf78 Polish "Add missing package-info files"
See gh-18632
5 years ago
Leo Li af114c93ee Add missing package-info files
See gh-18632
5 years ago
Alessandro Falappa f28af3db9f Narrow type for Tomcat 'locale' and 'encoding' properties
See gh-18637
5 years ago
Stephane Nicoll fd94608f73 Polish "Restore proxying of @Bean methods in @TestConfiguration"
See gh-18675
5 years ago
Dmytro Nosan 7faa606920 Restore proxying of @Bean methods in @TestConfiguration
See gh-18675
5 years ago
Stephane Nicoll bd4dc1ef2a Merge branch '2.1.x'
Closes gh-18669
5 years ago
xiaokeliu666 57c64eb3bc Polish
See gh-18665
5 years ago
Andy Wilkinson 03f5791860 Merge branch '2.1.x'
Closes gh-18650
5 years ago
dreis2211 d17f11dbe1 Test the Gradle Plugin against Gradle 5.6.3
See gh-18648
5 years ago
Andy Wilkinson 53dea36252 Upgrade to Undertow 2.0.27.Final
Closes gh-18626
5 years ago
Andy Wilkinson 62d78d0570 Upgrade to Spring Session Corn-RELEASE
Closes gh-18525
5 years ago
Andy Wilkinson 2cdf801e7f Add a note to the docs about combining multiple security components
Previously, the documentation did not describe how to combine
multiple security components when one component's
WebSecurityConfigurerAdapter or SecurityWebFilterChain would cause
the other components' beans of the same type to back off.

This commit adds a note that such cases should be handled by the user
defining their own WebSecurityConfigurerAdapter or
SecurityWebFilterChain that configures the use of all of the
components as required.

Closes gh-18507
5 years ago
Brian Clozel 1529ba14c8 Rename server.jetty.idle-timeout
This commit renames the `server.jetty.idle-timeout` property to
`server.jetty.thread-idle-timeout`, since there are other timeout
properties that are not tied to the threadpool configuration (e.g. the
connection idle timeout).

We might regroup thread-related properties in a dedicated group in the
future, see gh-18620.

Fixes gh-18615
5 years ago
Andy Wilkinson 49a6131a98 Merge pull request #18619 from izeye
* gh-18619:
  Remove accidental JavaVersion.current() call in BootRun

Closes gh-18619
5 years ago
Johnny Lim 137538f415 Remove accidental JavaVersion.current() call in BootRun
It was added accidentally in d2b28ceb.

See gh-18619
5 years ago
Andy Wilkinson fd1d653c34 Rename socket factory processor methods on NettyRSocketServerFactory
Previously, the methods were named addServerProcessors and
setServerProcessors which wasn't aligned with them taking
socket factory processors (ServerRSocketFactoryProcessor) as an
argument.

This commit renames the methods to align them more closely with the
type of their arguments.

Closes gh-18617
5 years ago
Brian Clozel 7104b8385f Merge branch '2.1.x' 5 years ago
Brian Clozel 9c5ee1126f Polish
See gh-18473
5 years ago
Brian Clozel 7113d41a80 Merge branch '2.1.x'
Closes gh-18618
5 years ago
Brian Clozel e4fa9ce8c6 Deprecate server.connection-timeout property
Prior to this commit, all supported servers would share the same
configuration property `server.connection-timeout`. Unfortunately, in
many cases the behavior of this timeout changes depending on the server.
From actual connection setup timeout, to detecting and closing idle
connections, this property cannot be properly translated from one server
implementation to another.

This commit deprecates this configuration property and introduces server
specific properties:

* `server.jetty.connection-idle-timeout`
(Time that the connection can be idle before it is closed.)
* `server.netty.connection-timeout`
(Connection timeout of the Netty channel.)
* `server.tomcat.connection-timeout`
(Amount of time the connector will wait, after accepting a connection,
for the request URI line to be presented.)
* `server.undertow.no-request-timeout`
(Amount of time a connection can sit idle without processing a request,
before it is closed by the server.)

`server.connection-timeout` is now deprecated and will be removed in a
future release.

Fixes gh-18473
5 years ago
Stephane Nicoll 64401216b0 Merge branch '2.1.x'
Closes gh-18614
5 years ago
contextshuffling a8c6540191 Use LinkedHashSet for deterministic order in test assertion
See gh-18612
5 years ago
Andy Wilkinson 6af56a8f07 Upgrade to Netty 4.1.42.Final
Closes gh-18609
5 years ago
Andy Wilkinson 4b4b39853b Merge branch '2.1.x'
Closes gh-18608
5 years ago
Andy Wilkinson 00d4b44cbb Remove trailing commas from test SQL scripts
Closes gh-18607
5 years ago
Andy Wilkinson 15db8d8b0c Upgrade to Spring Kafka 2.3.1.RELEASE
Closes gh-18526
5 years ago
Andy Wilkinson 6e84ae6474 Make SAML 2 login configuration back off with user provider config adapter
Previously, a WebSecurityConfigurerAdapter would be configured
irrespective of whether or not the user had provided their own
WebSecurityConfigurerAdapter. This then required them to use ordering
to diambiguate the configuration and made it harder to take complete
control of security configuration.

This commit updates the configuration of the SAML 2 login configurer
adapter to be conditional on missing bean, aligning it with other
security configuration such as the equivalent OAuth 2 configurer
adapter.

Closes gh-18530
5 years ago
Andy Wilkinson 07d0794827 Consider possibility of missing @ConstructorBinding in failure analysis
Previously, when a NoSuchBeanDefinitionException was being analyzed,
the possibility of a missing @ConstructorBinding annotation on a
@ConfigurationProperties class was not considered.

This commit updates the failure analysis for failed constructor
injection of an instance of a @ConfigurationProperties-annotated
class. When such a failure occurs, adding @ConstructorBinding is
now suggested as an action.

Closes gh-18545
5 years ago
Andy Wilkinson 04e035caff Upgrade to Mongodb 3.11.1
Closes gh-18602
5 years ago
Andy Wilkinson e7ea1f32f7 Upgrade to Mimepull 1.9.12
Closes gh-18601
5 years ago
Andy Wilkinson e542cedc49 Upgrade to Flyway 6.0.6
Closes gh-18600
5 years ago
Andy Wilkinson bbae38c0fa Upgrade to Tomcat 9.0.27
Closes gh-18599
5 years ago
Andy Wilkinson 76651f28e5 Upgrade to Johnzon Jsonb 1.2.1
Closes gh-18598
5 years ago
Andy Wilkinson f7a87be1fe Upgrade to Mysql 8.0.18
Closes gh-18597
5 years ago
Andy Wilkinson 92b4e60ecd Upgrade to Rxjava2 2.2.13
Closes gh-18596
5 years ago
Andy Wilkinson 608f02f060 Upgrade to Unboundid Ldapsdk 4.0.12
Closes gh-18595
5 years ago
Andy Wilkinson 8091183c1f Upgrade to Hazelcast 3.12.3
Closes gh-18594
5 years ago
Andy Wilkinson eafa595ed3 Upgrade to Gson 2.8.6
Closes gh-18592
5 years ago
Stephane Nicoll 0bc5803e34 Merge branch '2.1.x'
Closes gh-18603
5 years ago
Stephane Nicoll e4ba6049ff Clarify scope of "@SpringBootTest#classes"
See gh-18229
5 years ago
Stephane Nicoll 2bf8073446 Polish
See gh-18440
5 years ago
Andy Wilkinson b240c810a8 Fix @ConfigurationProperties on @Bean methods without metadata caching
Due to a current limitation of Spring Framework, when bean metadata
caching is disabled, a merged bean definition may have a null
resolved factory method that would have been non-null if bean metadata
caching was enabled. Configuration property binding for @Bean methods
annotated with @ConfigurationProperties relied upon the resolved
factory method being enabled to find the @ConfigurationProperties
annotation and trigger property binding. As a result, when bean
metadata caching is disabled on the bean factory, such
@ConfigurationProperties beans would not be bound.

This commit works around the limitation by adding a fallback that
performs a reflection-based search for the factory method when the
resolved factory method on the bean definition is null. This allows
the bean's factory method and any @ConfigurationProperties annotation
on it to be found, ensuring that propoerty binding is then performed.

Fixes gh-18440
5 years ago
Stephane Nicoll 4efb4d1dd3 Polish "Add some more notes on running exploded jar files"
See gh-18477
5 years ago
Dave Syer 3f2dd30808 Add some more notes on running exploded jar files
See gh-18477
5 years ago
Stephane Nicoll 391eb279df Merge branch '2.1.x'
Closes gh-18588
5 years ago
Stephane Nicoll 22f44917ca Polish "Add metadata entry for spring.main.register-shutdown-hook"
See gh-18581
5 years ago
leoli 9b781449cf Add metadata entry for spring.main.register-shutdown-hook
See gh-18581
5 years ago
Stephane Nicoll 75bd15650f Merge branch '2.1.x'
Closes gh-18587
5 years ago
Stephane Nicoll f05d7902e2 Polish "Clarify formatting recommendations for configuration property javadoc"
See gh-18578
5 years ago
Rafiullah Hamedy 1f9b68707f Clarify formatting recommendations for configuration property javadoc
This commit adds a note to spring-boot-features.adoc to clarify that
using javadoc tags to format configuration property descriptions is not
supported.

See gh-18578
5 years ago
Stephane Nicoll 98f676ca46 Merge branch '2.1.x'
Closes gh-18586
5 years ago
contextshuffling efedd80d4b Use LinkedHashSet for deterministic order in test assertions
See gh-18580
5 years ago
Stephane Nicoll 9c6e5f0904 Merge branch '2.1.x'
Closes gh-18585
5 years ago
dreis2211 abfb87d1a3 Rename tests to match Surefire expectations
See gh-18579
5 years ago
Phillip Webb e20aa7dc73 Clarify ConfigurationPropertiesBean Javadoc
Update the `ConfigurationPropertiesBean` Javadoc to clarify its purpose.

Closes gh-18487
5 years ago
Andy Wilkinson 3fc51f8063 Isolate the effects of initializing Reactor's debug agent in the tests 5 years ago
Andy Wilkinson e7efe0cbfe Merge branch '2.1.x'
Closes gh-18576
5 years ago