Commit Graph

2106 Commits (8858c88a4c7d44f6d9b24ba5363d79ba041f796e)

Author SHA1 Message Date
Madhura Bhave 9c7612e681 Fix NPE in WaitStrategy used for test containers 7 years ago
Brian Clozel b7695fabab Switch to Reactor Bismuth SNAPSHOTs 7 years ago
Stephane Nicoll 38bd4bd58c Stop associating an Executor bean to Quartz
This commits make sure that the Quartz auto-configuration no longer
associates an `Executor` bean if present in the context as Quartz offers
properties to tune it, which would mutate and lead to unexpected
results.

Closes gh-12823
7 years ago
Stephane Nicoll e4e56bbcc3 Migrate to ApplicationContextRunner 7 years ago
Brian Clozel 3fa8fe85af Deprecate RouterFunctionMetrics
Spring Boot now deploys both annotation-based and functional endpoints
under the same `HttpHandler`; this means the currently auto-configured
`MetricsWebFilter` is instrumenting all endpoints to produce metrics.

There is no need for a WebFlux functional specific support.
This commit removes mentions of `RouterFunctionMetrics` in the docs and
deprecates that class.

Closes gh-12833
7 years ago
Brian Clozel 77be10e7bc Fix "status" metrics tag for error responses
Prior to this commit, the metrics `WebFilter` would handle exceptions
flowing through the pipeline and extract tag information right away.
Since error handling turns the exception information into error HTTP
responses later in the chain, the information extracted from the
response earlier is invalid.
In this case, the "status" information could be "200" whereas error
handlers would later set that status to "500".

This commit delays the tags extraction later in the process, right
before the response is comitted. The happy path is not changed, as
handlers signal that the response is fully taken care of at that point.

Fixes gh-11514
7 years ago
DK Lee 1f91ae541f Fix WebClient example constructor name
Closes gh-12842
7 years ago
Madhura Bhave 4fab679829 Upgrade testcontainers to 1.7.0
Closes gh-12821
7 years ago
Stephane Nicoll f55753c1dc Add reference to Axon Framework 7 years ago
Stephane Nicoll 5cba7400e1 Add reference to Flowable 7 years ago
Stephane Nicoll 3c169b4e0a Fix bean name of EnvironmentEndpointWebExtension
Closes gh-12827
7 years ago
Ken Kwon 16ad34aa19 Fix typo
Closes gh-12825
7 years ago
Stephane Nicoll e8fac7d9c4 Properly discover endpoints that are proxied
Previously to this commit, if a `@ControllerEndpoint`,
`@RestControllerEndpoint` or `@ServletEndpoint` annotated bean was
proxied, the endpoint wasn't properly detected.

This commit makes sure that annotation retrieval works on the user class
while preserving the get (vs. find) retrieval semantic

Closes gh-12441
7 years ago
Stephane Nicoll 86b96254a1 Migrate to ApplicationContextRunner 7 years ago
Stephane Nicoll f83934e192 Polish contribution
Closes gh-12812
7 years ago
Johnny Lim f03849d502 Polish
See gh-12812
7 years ago
Andy Wilkinson 4fbe0b1283 Add dependency management for Kafka
Closes gh-12815
7 years ago
Phillip Webb ba85cefce3 Polish 7 years ago
Andy Wilkinson 8d5b9f37d5 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 8b1a101cb6 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 6692301d51 Polish "Replace Couchbase's deprecated methods"
Closes gh-12655
7 years ago
Yulin Qin 3236306e53 Replace Couchbase's deprecated methods
See gh-12655
7 years ago
Stephane Nicoll 92d9479765 Gracefully handle exclusion of DataSourceAutoConfiguration
This commit makes sure that an auto-configuration that requires
`DataSourceProperties` will not break if `DataSourceAutoConfiguration`
has been explicitly excluded.

Closes gh-12512
7 years ago
Madhura Bhave 2f5ab50367 Add @QuartzDataSource for quartz auto-configuration
Closes gh-12755
7 years ago
Andy Wilkinson c3bf8541d7 Do not rely on findAvailableTcpPort finding an available port
Closes gh-12779
7 years ago
Jichun Liu 34986ed12f Add docker-api starter to 3rd party list
See https://github.com/jliu666/docker-api-spring-boot

Closes gh-12605
7 years ago
Andy Wilkinson f335ec00bf Polish 7 years ago
Andy Wilkinson 71df9c8618 Upgrade to Spring Kafka 2.1.5.RELEASE
Closes gh-12775
7 years ago
Andy Wilkinson b42325f388 Upgrade to Spring Amqp 2.0.3.RELEASE
Closes gh-12774
7 years ago
Andy Wilkinson 0c6a09201d Upgrade to Couchbase Client 2.5.7
Closes gh-12773
7 years ago
Andy Wilkinson 87aef1c379 Merge branch '1.5.x' 7 years ago
Andy Wilkinson a8bbf7120e Merge branch '1.5.x' 7 years ago
Phillip Webb 0c98d0e7d3 Polish "Allow validation api without implementation"
Closes gh-12669
7 years ago
geo_m a74dc74ec3 Allow validation api without implementation
Allow validation api in the classpath without
a validator, as long as no bean is annotated `@Validated`

See gh-12669
7 years ago
Phillip Webb 41dc70146a Polish "Prevent warnings when running embedded Artemis"
Closes gh-12680
7 years ago
Benjamin Graf 19818b752c Prevent warnings when running embedded Artemis
Configure AddressSettings for DLQ and ExpiryQueue for the embedded
Artemis broker to prevent warnings from being logged.

Closes gh-12680
7 years ago
Phillip Webb 68dc9fed3b Upgrade to Spring Integration 5.0.4
Closes gh-12693
7 years ago
Phillip Webb ec419fca8b Upgrade to Spring Security 5.0.4
Closes gh-12694
7 years ago
Phillip Webb 0c0b60bfa4 Upgrade to Spring Data Kay SR6
Closes gh-12696
7 years ago
Jon Schneider 03158e2fd5 Upgrade to Micrometer 1.0.3
Closes gh-12767
7 years ago
Phillip Webb 685babc829 Polish "Use lambdas for map entry iteration where possible"
Closes gh-12626
7 years ago
igor-suhorukov 69bc19e0ca Use lambdas for map entry iteration where possible
See gh-12626
7 years ago
Clement Stoquart 276037cd56 Add missing managed JUnit Jupiter dependencies
Add managed dependencies for `junit-jupiter-params` and
`junit-vintage-engine`.

Closes gh-12635
7 years ago
dreis2211 cc66de28d0 Populate cache in ConfigFileApplicationListener
Fix `ConfigFileApplicationListener` so that the loadDocumentsCache is
populated when documents are loaded.

Closes gh-12732
7 years ago
dreis2211 35b4cd01ab Polish 7 years ago
Phillip Webb bc15f9ee9b Upgrade Maven failsafe plugin to 2.21.0
See gh-12721
7 years ago
Stephan Köninger 373f5e7682 Upgrade Maven surefire plugin to 2.21.0
Closes gh-12721
7 years ago
Phillip Webb 598e9bb842 Polish 7 years ago
Phillip Webb ce9ca6ae70 Polish "Apply MeterRegistryCustomizer to composites"
Closes gh-12762
7 years ago
Jon Schneider 1fce462944 Apply MeterRegistryCustomizer to composites
Update `MeterRegistryConfigurer` to also apply customizers to
composite meter registries. Prior to this commit composites were
skipped due to the incorrect assumption that did not contain
their own state.

Closes gh-12762
7 years ago
Phillip Webb d49a1024bd Merge branch '1.5.x' 7 years ago
Phillip Webb 696aedaef8 Merge branch '1.5.x' 7 years ago
Brian Clozel 799e1ba077 Upgrade to Netty 4.1.23.Final
Closes gh-12764
7 years ago
Phillip Webb 6fb4fba43a Merge branch '1.5.x' 7 years ago
Andy Wilkinson aa27334671 Run deployment tests on JDK 9 and 10 where possible
Closes gh-10414
7 years ago
Andy Wilkinson e44bfbea4a Merge branch '1.5.x' 7 years ago
Andy Wilkinson 7b39cdd5c4 Merge branch '1.5.x' 7 years ago
Andy Wilkinson b951397a7c Upgrade to Spring REST Docs 2.0.1.RELEASE
Closes gh-12681
7 years ago
Brian Clozel f6d16c8b99 Align WebFluxTags uri support on WebMvcTags
This commit ensures that `WebFluxTags` not only relies on
`BEST_MATCHING_PATTERN_ATTRIBUTE` or request URI to provide the "uri"
tag information.

To avoid cardinality explosion, HTTP not found and redirects are
assigned fixed uri tags.

Closes gh-12685
7 years ago
Stephane Nicoll ad6a888e47 Polish 7 years ago
Stephane Nicoll f99752283f Fix relaxed binding examples
Closes gh-12750
7 years ago
Stephane Nicoll bf06854218 Merge branch '1.5.x' 7 years ago
Madhura Bhave 30e3cf4c01 Make sure property mapping exception are swallowed 7 years ago
Madhura Bhave e5f8078749 Support dots in System environment properties
Fixes gh-12728
7 years ago
Stephane Nicoll d14cd2cbae Upgrade to Spring Framework 5.0.5.RELEASE
Closes gh-12340
7 years ago
Stephane Nicoll f424297fef Upgrade to Reactor Bismuth SR8
Closes gh-12698
7 years ago
Andy Wilkinson 195a66f009 Upgrade to Hibernate Validator 6.0.9.Final
Closes gh-12746
7 years ago
Andy Wilkinson d5caddf4ca Upgrade to Rxjava 1.3.8
Closes gh-12745
7 years ago
Andy Wilkinson 16f5f8d53c Upgrade to Lettuce 5.0.3.RELEASE
Closes gh-12744
7 years ago
Andy Wilkinson e20fcf0e17 Merge branch '1.5.x' 7 years ago
Rui Figueira 958aa5db55 Remove outdated reference to `EnvironmentTestUtils`
Documentation still refers to the now deprecated `EnvironmentTestUtils`
class instead of `TestPropertyValues` for setting environment values in
tests.

This commit replaces it with `TestPropertyValues` and provides an
equivalent code example.

Closes gh-12711
7 years ago
Andy Wilkinson 72cf471e83 Merge branch '1.5.x' 7 years ago
Stephane Nicoll b6f9b46be8 Only create a WebTestClient with WebFlux
This commit updates WebTestClientAutoConfiguration to only create a
WebTestClient when running a WebFlux-based application as mocking the
context only works with that mode at the moment.

Closes gh-12318
7 years ago
Stephane Nicoll 7dbeaaa932 Polish "Remove HierarchicalNameMapper as a configured @Bean"
Closes gh-12683
7 years ago
Jon Schneider 8572a091b8 Remove HierarchicalNameMapper as a configured @Bean
HierarchicalNameMapper is not a component that can be shared amongst
multiple monitoring systems.

See gh-12683
7 years ago
Stephane Nicoll 7c36c00331 Fix default HierarchicalNameMapper implementation for Graphite
Closes gh-12557
7 years ago
Johnny Lim 4ab439856c Remove destroyMethod attribute in @Bean for MeterRegistry
Closes gh-12725
7 years ago
Andy Wilkinson 3568019118 Merge branch '1.5.x' 7 years ago
Attila Pápai 95385cecba Add space between right parentheses and next word
Closes gh-12722
7 years ago
Benjamin Graf 101a42c572 Fix outdated import statements
Closes gh-12697
7 years ago
Madhura Bhave 8e81f0c23d Fix conditions report message for same short name
If two auto-configuration classes with the same name are present,
the conditions report message now uses the fully qualified name for
both instead of the short name.

Fixes gh-11710
7 years ago
Madhura Bhave 270ee6dd2c Configure RequestContextFilter in mgmt context
Closes gh-12546
7 years ago
Phillip Webb a657a28f58 Fix properties unicode value decoding
Fix a range error when checking for unicode hex chars.

Fixes gh-12716
7 years ago
Phillip Webb 47a56616ae Merge branch '1.5.x' 7 years ago
Stephane Nicoll c90806477c Fix outdated reference to DurationUnit
Closes gh-12708
7 years ago
Madhura Bhave 821af30277 Add missing javadoc for Bindable
Closes gh-12643
7 years ago
Andy Wilkinson f108224b22 Start building against Spring Data Kay SR6 snapshots
See gh-12696
7 years ago
Andy Wilkinson 24da1dc97e Start building against Spring Security 5.0.4 snapshots
See gh-12694
7 years ago
Andy Wilkinson 29c03da7df Start building against Spring Integration 5.0.4 snapshots
See gh-12693
7 years ago
Phillip Webb 7649eb6230 Allow auto-configure sort with incomplete chain
Update `AutoConfigurationSorter` so that all `@AutoConfigureBefore` and
`@AutoConfigureAfter` classes are considered even if they are ultimately
not part of the requested set.

Prior to this commit, given classes ordered with annotations such that
A -> B -> C a call to sort only [A, B] could return the incorrect order.

Fixes gh-12660
7 years ago
Stephane Nicoll 4b4a8acb9d Group auto-configuration import selectors together
This commit updates Spring Boot's DeferredImportSelector implementations
to group imports in a consistent set. This makes sure ordering is
applied consistently.

Closes gh-12366
7 years ago
Phillip Webb 9a64d3bf3f Fix AsciiBytes unicode decoding
Fix the decoding logic in the AsciiBytes `hashCode` and `matches` to
correctly deal with multi-byte encodings.

Fixes gh-12504
7 years ago
Phillip Webb 98a2a91d16 Polish 7 years ago
Brian Clozel ebb2f70e0b Make WebMvgTags use matched patterns for HTTP 404
Prior to this commit, `WebMvcTags' would always mark as "NOT_FOUND" or
"REDIRECTION" *any* exchange with responses of 404 and 3xx status, even
if those responses are actually returned by Controller handlers.

This commit checks inverts those checks and first considers if the
"BEST_MATCHING_PATTERN_ATTRIBUTE" request attribute is present and uses
it - then falls back to "NOT_FOUND" and "REDIRECTION" to avoid
cardinality explosion.

Fixes gh-12577
7 years ago
Andy Wilkinson cca5c0d2ee Start building against Spring REST Docs 2.0.1 snapshots
See gh-12681
7 years ago
Andy Wilkinson 14b8e759c9 Upgrade to Jackson 2.9.5
Closes gh-12639
7 years ago
Andy Wilkinson 247910a28d Merge branch '1.5.x' 7 years ago
Stephane Nicoll 703f33f175 Add reference to Sprout Platform starter
Closes gh-12599
7 years ago
Kazuki YAMAMOTO aac716cb8c Fix typo
Closes gh-12666
7 years ago
Stephane Nicoll d456e1de49 Polish contribution
Closes gh-12590
7 years ago
Johnny Lim 74f9a84ea9 Make intermediate classes in type hierarchy of public class public
See gh-12590
7 years ago
Stephane Nicoll da77cbaf7e Complete dependency management for Quartz
Closes gh-12663
7 years ago
Stephane Nicoll 1e2eec5bcd Close context if an ApplicationReadyEvent listener fails
This commit makes sure that the `ApplicationContext` is closed properly
if an `ApplicationReadyListener` throws an exception.

Closes gh-12549
7 years ago
Madhura Bhave 8b29823885 Prevent StackOverFlowException in metadata processor
Fixes gh-11037
7 years ago
Stephane Nicoll 13f45e6434 Remove misleading Jersey configuration property
This commit removes an override of a `ResourceConfig` property that was
set as an init parameter property (and therefore ignored).

Closes gh-3557
7 years ago
Stephane Nicoll ccbfcbedf0 Add support for org.jooq.RecordUnmapperProvider
Closes gh-12560
7 years ago
Andy Wilkinson 1f35abacd6 Polish “Configure Kotlin compiler to use -java-parameters by default”
Closes gh-12641
7 years ago
Rui Figueira 5e2726f896 Configure Kotlin compiler to use -java-parameters by default
See gh-12641
7 years ago
Stephane Nicoll 404f22e5f9 Polish "Document @WebFluxTest limitation with RouterFunction"
See gh-10683
7 years ago
Madhura Bhave db7d47704a Document @WebFluxTest limitation with RouterFunction
Fixes gh-10683
7 years ago
Madhura Bhave a6a523bc51 Fix typos 7 years ago
Stephane Nicoll 42e81e987b Fix @EnableIntegrationManagement
Restore proper use of `defaultCountsEnabled` that was inadvertently
changed to `countsEnabled`

Closes gh-12594
7 years ago
Stephane Nicoll d9beafa45f Merge branch '1.5.x' 7 years ago
Stephane Nicoll 006decea2a Merge branch '1.5.x' 7 years ago
Madhura Bhave 88faabaa63 Fix space 7 years ago
Madhura Bhave fa6ee8e34d Clarify h2-console requires a servlet-based web app
Fixes gh-12603
7 years ago
Stephane Nicoll 553b184248 Polish "Use Supplier variants of Assert methods"
Closes gh-12630
7 years ago
dreis2211 3b0f6e7168 Use Supplier variants of Assert methods
See gh-12630
7 years ago
Stephane Nicoll 62cc4e9552 Polish "Remove value in @ConditionalOnMissingBean if possible"
Closes gh-12604
7 years ago
Johnny Lim c100510222 Remove value in @ConditionalOnMissingBean if possible
See gh-12604
7 years ago
Stephane Nicoll 47307dbc7e Polish contribution
Closes gh-12584
7 years ago
Johnny Lim 625bf93598 Polish
See gh-12584
7 years ago
Stephane Nicoll 64a4f70564 Avoid use of `foo` and `bar` in doc 7 years ago
sdeleuze 561c24b328 Fix Kotlin @ConfigurationProperties example
Closes gh-12633
7 years ago
Stephane Nicoll 9cac45d514 Polish "Add Redis Sentinel database support"
Closes gh-12556
7 years ago
Alen Turkovic 1f80079c49 Add Redis Sentinel database support
See gh-12556
7 years ago
Stephane Nicoll ed7618b097 Polish "Avoid string copies in SpringBootBanner"
Closes gh-12591
7 years ago
dreis2211 97c95d749e Avoid string copies in SpringBootBanner
See gh-12591
7 years ago
Andy Wilkinson 9fccb0ae55 Upgrade to Spring Ws 3.0.1.RELEASE
Closes gh-12625
7 years ago
Andy Wilkinson dcb1535eb1 Upgrade to Selenium Htmlunit 2.29.3
Closes gh-12624
7 years ago
Andy Wilkinson 49ee528d09 Upgrade to Postgresql 42.2.2
Closes gh-12623
7 years ago
Andy Wilkinson de87e63503 Upgrade to Jooq 3.10.6
Closes gh-12622
7 years ago
Andy Wilkinson 1543d98cc5 Upgrade to Kotlin 1.2.31
Closes gh-12621
7 years ago
Andy Wilkinson 5453e77062 Upgrade to Infinispan 9.1.7.Final
Closes gh-12620
7 years ago
Andy Wilkinson 77c2232a63 Upgrade to Hibernate 5.2.16.Final
Closes gh-12619
7 years ago
Andy Wilkinson 4ebb5a942c Upgrade to Ehcache3 3.5.2
Closes gh-12618
7 years ago
Andy Wilkinson 43e0c66783 Upgrade to Rxjava2 2.1.12
Closes gh-12617
7 years ago
Andy Wilkinson 5defc2ab57 Upgrade to Rxjava 1.3.7
Closes gh-12616
7 years ago
Andy Wilkinson 83d4b2e92e Upgrade to Unboundid Ldapsdk 4.0.5
Closes gh-12615
7 years ago
Brian Clozel 728251c3bb Upgrade to Reactor Bismuth SNAPSHOTs 7 years ago
Andy Wilkinson 95b0e874f9 Merge branch '1.5.x' 7 years ago
Andy Wilkinson c12851a5b0 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 1de77cde75 Unignore JUL logging test
Closes gh-1778
7 years ago
Johnny Lim 1e2e8b1d66 Rename expose to include
Closes gh-12555
7 years ago
igor-suhorukov 21628a9a59 Polish
Closes gh-12553
7 years ago
Denis Washington a09ee17cbf Add OAuth2 server implementation section to docs
As auto-configuration for Spring Security OAuth has been removed
from Spring Boot 2.0 and Spring Security 5 doesn't have OAuth
2.0 Authorization / Resource Server support yet, it has not
been obvious at all how to implement an OAUth 2.0 server with
Spring Boot 2.0.

For that reason, this new section briefly explains the current
temporary situation and points to the spring-security-oauth2-autoconfigure
module that restores the auto-configuration support for OAuth
2.0 Authorization and Resource Servers.

Closes gh-12491
7 years ago
Phillip Webb 78534a753d Polish "Iterate map by using lambda function"
See gh-12528
7 years ago
igor-suhorukov ffc883b005 Iterate map by using lambda function
Closes gh-12528
7 years ago
Phillip Webb a520056838 Make containsDescendantOf a default method
Change `ConfigurationPropertySource.containsDescendantOf` to have a
default implementation that return `UNKNOWN`.

Fixes gh-12539
7 years ago
Phillip Webb 63b8ccc7c3 Fix IterableConfigurationPropertySource javadoc
Fixes gh-12540
7 years ago
Phillip Webb c66781a3d3 Set using collection copies when possible
Update `Map` and `Collection` binders to create a copy of the existing
collection whenever possible. Prior to this commit the binder would
always mutate the existing value and then call the setter with the
same instance. This could cause issues if the setter expected a
different instance.

Fixes gh-12322
7 years ago
Phillip Webb 6e2ecb8a43 Fix broken endpoint integration tests
Ensure that JSON response is returned when extracting data from the
error details.

See gh-12513
7 years ago
Andy Wilkinson 72e36eadae Polish 7 years ago
Andy Wilkinson 6c77b012f0 Polish "Follow project convention for lambda expression"
Csee gh-12527
7 years ago
igor-suhorukov 261264cef3 Follow project convention for lambda expression
Closes gh-12527
7 years ago
Stephane Nicoll 78571f50f8 Restore server.error.include-stacktrace default value 7 years ago
Stephane Nicoll 3e826c1a01 Fix typo in Micrometer examples
Closes gh-12529
7 years ago
Phillip Webb 79ad03b584 Merge branch '1.5.x' 7 years ago
Phillip Webb 620208a802 Polish 7 years ago
Phillip Webb f80db03e75 Remove repositories section from published POM
Fixes gh-12378
7 years ago
Andy Wilkinson 217dbe4a6f Merge pull request #12511 from Onur Kağan Özcan
* gh-12511:
  Upgrade maven dependency plugin version to 3.0.2
7 years ago
Onur Kağan Özcan dfe099b202 Upgrade maven dependency plugin version to 3.0.2
Closes gh-12511
7 years ago
Andy Wilkinson 36ea387a67 Close RandomAccessDataFile when direct JarFile is closed
Previously, the underlying RandomAccessDataFile was not closed when
the JarFile that was using it was closed. This causes a problem on
Windows as the open file handle prevents the file from being deleted.

This commit updates JarFile to close the underlying
RandomAccessDataFile when it is closed and has a JarFileType of
DIRECT.

Previously, when accessing the manifest of a jar file that maps to a
nested directory (BOOT-INF/classes) a new JarFile was created from the
root jar file, the manifest was retrieved, and the new JarFile was
closed. This could lead to the underlying RandomAccessDataFile being
closed while it was still in use.

This commit improves JarFile to retrieve the manifest from the
existing outer JarFile, thereby avoiding the need to create and close
a new JarFile.

Unfortunately, PropertiesLauncher creates a number of scenarios where
a JarFile with a type of direct is closed while it’s still being used.
To accommodate this behaviour, RandomAccessDataFile has been updated
so that it can re-open the underlying RandomAccessFile if it is used
after it has been closed.

Closes gh-12296
7 years ago
Brian Clozel 0162978c78 Support server.error.whitelabel.enabled in WebFlux
This commit disables the default HTML view in the WebFlux error handling
support when `server.error.whitelabel.enabled=false`.
In this case, the original exception will be forwarded down the stream
and handled by the default `WebExceptionHandler` provided by Spring
WebFlux (likely to respond a blank page and an error HTTP response
status).

Closes gh-12520
7 years ago
Brian Clozel 161ecc0575 Bind server.error.whitelabel.enabled to ErrorProperties
Closes gh-12516
7 years ago
Andy Wilkinson 2da4897aa8 Polish 7 years ago
Phillip Webb 522e3df394 Fix same name configuration properties adapting
Update `SpringConfigurationPropertySources` adapter logic so that and
exact instance match is used when checking if the cache can be used.

Prior to this commit if a property source was replaced with one that
had exactly the same name, the adapted version would not change.

Fixes gh-12451
7 years ago
Phillip Webb c201c1dac1 Polish 7 years ago
Madhura Bhave 9384e5c3c1 Fix binding to bean with cloned arrays
Fixes gh-12478
7 years ago
Madhura Bhave cb3da28bb9 Enforce length > 1 for H2 and WebServices path
Fixes gh-12485
7 years ago
Madhura Bhave e6149fda1c Assert endpoints basePath starts with '/' or is empty
Fixes gh-12489
7 years ago
Brian Clozel b8e8647391 Fix Servlet requirements in reference docs
As of Spring Framework 5.0, only Servlet 3.1+ containers are supported.
See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x

This commit updates the reference documentation to reflect that and also
removes sections describing pre-Servlet 3.1 solutions, as those are not
supported anymore.

Fixes gh-12370
7 years ago
Brian Clozel 2561f320e8 War deployment is not supported for WebFlux apps
Even though War deployment is supported by Spring Framework itself for
WebFlux applications, this is not the case currently in Spring Boot.

Fixes gh-12455
7 years ago
Brian Clozel a0b9974796 Polish Couchbase tests 7 years ago
dreis2211 ca30739bf9 Use ApplicationContextRunner in tests
Closes gh-12495
7 years ago
Andy Wilkinson 19b726854d Upgrade to Mariadb 2.2.3
Closes gh-12503
7 years ago
Andy Wilkinson 6da049b7e3 Upgrade to Solr 6.6.3
Closes gh-12502
7 years ago
Andy Wilkinson c940f49bb3 Upgrade to Johnzon Jsonb 1.1.7
Closes gh-12501
7 years ago
Andy Wilkinson 3aafbce4f8 Upgrade to Byte Buddy 1.7.11
Closes gh-12500
7 years ago
Andy Wilkinson b948e32f12 Upgrade to Couchbase Client 2.5.6
Closes gh-12499
7 years ago
Andy Wilkinson d5e588d50a Merge branch '1.5.x' 7 years ago
Andy Wilkinson 53924de556 Merge branch '1.5.x' 7 years ago
Vladimir Tsanev bf433e7f17 Fix Javadoc for ServiceLevelAgreementBoundary
Closes gh-12492
7 years ago
Brian Clozel 57147241cb Make WebClientCustomizer optional for WebClient
This commit removes the required dependency on `WebClientCustomizer`
instances when creating `WebClient` beans, making it optional.

Closes gh-12458
7 years ago
Phillip Webb d1e51d7f98 Explicitly set asyncSupported for reactive servers
Update `JettyReactiveWebServerFactory`/`TomcatReactiveWebServerFactory`
to explicitly set `asyncSupported` to `true`.

Fixes gh-12486
7 years ago
igor-suhorukov 4c61d8abfe avoid check class by string name 7 years ago
Johnny Lim 2e6914ea88 Add missing super() calls
Closes gh-12459
7 years ago
Brian Clozel a08deff0ce Fix WelcomePageHandlerMapping order
This commit fixes 220f8cd and moves the order for
`WelcomePageHandlerMapping` to `2` since the previous order was
conflicting with the resource mapping.

Closes gh-12335
7 years ago
Jon Schneider 0ce7c34036 Upgrade to Micrometer 1.0.2
Closes gh-12480
7 years ago
Phillip Webb c3bc6f6dd6 Polish "Move test to ApplicationContextRunner"
Closes gh-12477
7 years ago
dreis2211 3246496e2c Move test to ApplicationContextRunner
Move `DispatcherServletAutoConfigurationTests` to use the
`ApplicationContextRunner`

See gh-12477
7 years ago
dreis2211 8626daf135 Replace Mockito.times(0) with Mockito.never()
Closes gh-12475
7 years ago
Phillip Webb 90949669be Polish "refactor spring-boot JSON parser"
Polish JSON parser refactoring and remove some more duplication.

Closes gh-12428
7 years ago
Anton Telechev aa69621078 Refactor spring-boot JSON parsers
Refactor JSON parser wrappers to remove duplicate code portions in the
parseMap() and parseList() methods by adding an AbstractJsonParser.

See gh-12428
7 years ago
Phillip Webb a4b0be089d Polish 7 years ago
Brian Clozel 220f8cdca2 Order WelcomePageHandlerMapping at lower precedence
This commit orders the `WelcomePageHandlerMapping` at
`Ordered.LOWEST_PRECEDENCE -1` in order to give a chance to other
mappings to handle the incoming requests.

In this case, developers might provide a custom `ViewController` or
custom `HandlerMapping` for the `"/"` path and we should not override
that opinion.

Closes gh-12335
7 years ago
Stephane Nicoll 5320081d0b Revert "Only create a WebTestClient with WebFlux"
This reverts commit 282bd9f
7 years ago
Stephane Nicoll b80620fe28 Revert "Group auto-configuration import selectors together"
This reverts commit 26d9c26
7 years ago
Stephane Nicoll 282bd9f0db Only create a WebTestClient with WebFlux
This commit updates WebTestClientAutoConfiguration to only create a
WebTestClient when running a WebFlux-based application as mocking the
context only works with that mode at the moment.

Closes gh-12318
7 years ago
Stephane Nicoll 26d9c261c5 Group auto-configuration import selectors together
This commit updates Spring Boot's DeferredImportSelector implementations
to group imports in a consistent set. This makes sure ordering is
applied consistently.

Closes gh-12366
7 years ago
Jon Schneider 172794d446 Correct default Wavefront proxy port in docs
Closes gh-12471
7 years ago
dreis2211 0d3f3e46dd Fix typos
Closes gh-12468
7 years ago
Andy Wilkinson 2f1b2e3ce2 Log summary of web-exposed endpoints during startup
Closes gh-12442
7 years ago
Andy Wilkinson f758a4ddd5 Do not link to controller endpoints in Jersey-based Actuator
Closes gh-12463
7 years ago
dreis2211 a21ea612db Remove duplicated @author tags
Closes gh-12454
7 years ago
igor-suhorukov 97d803bd30 Polish
Closes gh-12448
7 years ago
igor-suhorukov cca976eccd Remove redundant "close" call
Closing the resource is handled automatically by the try-with-resources.

Closes gh-12453
7 years ago
igor-suhorukov 12185251c1 "toString()" should never be called on a String object
Closes gh-12452
7 years ago
igor-suhorukov 93f9bd0a32 Polish
Closes gh-12450
7 years ago
Madhura Bhave 6d9692ffb7 Fix binding to empty prefix when empty name present
Fixes gh-12381
7 years ago
Andy Wilkinson b88e3cb27e Upgrade to Hibernate Validator 6.0.8.Final
Closes gh-12440
7 years ago
Andy Wilkinson db466a1ae2 Upgrade to Hibernate 5.2.15.Final
Closes gh-12439
7 years ago
Stephane Nicoll 0fbe3c28a2 Polish "Add reference to RabbitMQ (advanced usage) starter"
Closes gh-12427
7 years ago
Vincent Fuchs 61c44cf672 Add reference to RabbitMQ (advanced usage) starter
See gh-12427
7 years ago
Stephane Nicoll bb25b0a1f4 Merge branch '1.5.x' 7 years ago
Stephane Nicoll ed05e1f7ca Polish "Reorder modifiers to comply with the JLS"
Closes gh-12432
7 years ago
igor-suhorukov aebb475bc5 Reorder modifiers to comply with the JLS
See gh-12432
7 years ago
Andy Wilkinson 6d16c5ff6e Omit libraries with null destination when repackaging
Closes gh-12437
7 years ago
Stephane Nicoll 7f9ab8078f Merge branch '1.5.x' 7 years ago
igor-suhorukov 6ee04ff942 Polish
Closes gh-12425
7 years ago
Madhura Bhave 6bcdd57ef2 Polish 7 years ago
Madhura Bhave 26811b8974 Ignore top-level ConfigurationProperty binding failures
Fixes gh-12357
7 years ago
Stephane Nicoll a55180aa1e Polish "Get rid of "magic" time constants"
Closes gh-12411
7 years ago
igor-suhorukov ce78a78231 Get rid of "magic" time constants
See gh-12411
7 years ago
Johnny Lim 3c9cee2a8c Invoke mapStatus() only when necessary
Closes gh-12419
7 years ago
Andy Wilkinson 3642636b60 Align test build-info.properties with ISO 8601 formatt changes
See gh-12420
7 years ago
Andy Wilkinson 9b637d4f0d Use millisecond precision for build time in BuildPropertiesTests
Closes gh-12420
7 years ago
Andy Wilkinson 87239ba6c9 Parse build.time as an ISO 8601 instant
Closes gh-12420
7 years ago
igor-suhorukov 4f4cc1569c Polish
Declarations should use Java collection interfaces such as "Deque" rather
than specific implementation classes such as "LinkedList".

Closes gh-12405
7 years ago
Andy Wilkinson 8109267de8 Upgrade to Spring Batch 4.0.1.RELEASE
Closes gh-12410
7 years ago
Andy Wilkinson 63a7a9bf42 Merge branch '1.5.x' 7 years ago
Andy Wilkinson d08b228813 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 43d05315b3 Use Surefire and Failsafe 2.21.0 when building with JDK 10
Closes gh-12332
7 years ago
Madhura Bhave 89e42d40c5 Provide security matchers for actuator links
Fixes gh-12353
7 years ago
Stephane Nicoll 7d1faa1c88 Ignore static and abstract accessors
This commit updates the annotation processor and the binder to ignore
any static or abstract method that has the characteristics of a JavaBean
accessor. As a result, no property is generated for those (invalid)
accessor and no binding occurs on them either.

Closes gh-12390
7 years ago
Brian Clozel 72afdc676d Reorder WebMvcConfigurer from auto-configuration
Prior to this commit, all `WebMvcConfigurer` instances provided by user
configuration were processed *before* the one provided by the
`WebMvcAutoConfiguration`.

For many options this has no consequence, but for some, like the
`ContentNegotiationConfigurer`, settings were overriden by the
auto-configuration even if developers provided an opinion.

This commit orders the `WebMvcConfigurer` provided by the
auto-configuration at `0`, so that custom configurers (unordered, at
`Ordered.LOWEST_PRECEDENCE`) are processed *after*.

This still gives room to developers for configuring things *before* the
auto-configuration - they can still order their own configuration
accordingly.

Fixes gh-12389
7 years ago
Stephane Nicoll 9b1003d9f6 Properly identify accessor methods
This commit fixes the binder so that it property identifies JavaBean
accessors. Previously an accessor named `get` or `is` was identified.
Similarly, a setter named `set` was identified.

Closes gh-12363
7 years ago
Stephane Nicoll 36ed7ae699 Polish 7 years ago
Stephane Nicoll 3804466ad5 Fix description of JDBC starter
Closes gh-12387
7 years ago
Andy Wilkinson bf84215b90 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 1b36ab5be0 Fix wrong import 7 years ago
Stephane Nicoll 0207b816d9 Attempt to detect ddl-auto mode only if necessary
This commit defers the resolution of the default ddl auto mode only when
it is absolutely necessary. This prevents Spring Boot to attempt to get
a connection when it isn't necessary

Closes gh-12374
7 years ago
Andy Wilkinson 317b51f2ad Make ApplicationContextRequestMatcher and subclasses thread-safe
Previously, when performing lazy initialisation of the context,
ApplicationContextRequestMatcher assigned the context field before it
called initialized. The context being non-null is used as the signal
that it’s ok to call a subclass’s matches method. If one thread checks
for a non-null context in between the field being assigned and
initialized being called on another thread, matches will be called
before the subclass is ready.

This commit closes the window for the race condition by only assigning
the context field once the subclass’s initialized method has been
called.

There is a secondary problem in each of the subclasses. Due to the use
of double-checked locking in ApplicationContextRequestMatcher, it’s
possible for a subclass’s matches method to be called by a thread that
has not synchronised on the context lock that’s held when initialized
is called and the delegate field is assigned. This means that the
value assigned to the field may not be visible to that thread.

This commit declares the delegate field of each
ApplicationContextRequestMatcher subclass as volatile to ensure that,
following initialisation, its value is guaranteed to be visible to
all threads.

Closes gh-12380
7 years ago
Stephane Nicoll 42629cb8ae Add support for ConnectionNameStrategy
This commit detects if a `ConnectionNameStrategy` bean exists in the
context and associates it with the auto-configured RabbitMQ's
`ConnectionFactory` when that is the case.

Closes gh-12367
7 years ago
Stephane Nicoll bc47b715c3 Add a note about the use of `*` with YAML
Closes gh-12361
7 years ago
seongwoon.lee 762793b812 Remove a redundant trailing slash in doc
Closes gh-12365
7 years ago
Stephane Nicoll 7a88fe692d Polish Quartz dependency management
Closes gh-12364
7 years ago
Stephane Nicoll 326c1e123c Merge branch '1.5.x' 7 years ago
Stephane Nicoll 6f7501f62b Remove my clone 7 years ago
Madhura Bhave e6eca04af2 Make EndpointRequestMatcher#excluding public
Fixes gh-12354
7 years ago
Madhura Bhave 4ca1e6ae4e Polish "Fix typo in TestDatabaseAutoConfiguration"
Closes gh-12350
7 years ago
inabajunmr ddd8598e2e Fix typo in TestDatabaseAutoConfiguration failure msg
See gh-12350
7 years ago
Madhura Bhave b6e09e8311 Merge branch '1.5.x' 7 years ago
Andy Wilkinson d00d1da27a Upgrade to Maven Javadoc Plugin 3.0.0
Closes gh-12345
7 years ago
Cristian Greco b552842b9d Fix link to Spring Data JPA in docs
Closes gh-12342
7 years ago
Andy Wilkinson f918e0eb6a Merge branch '1.5.x' 7 years ago
Andy Wilkinson 85900796d3 Remove stale tip about ManagementContextConfiguration for endpoints
Closes gh-12312
7 years ago
Andy Wilkinson 2c882a47d0 Merge pull request #12324 from Jon Schneider
* gh-12324:
  Polish "Improve docs on custom metrics"
  Improve docs on custom metrics
7 years ago
Andy Wilkinson d7499387d8 Polish "Improve docs on custom metrics"
Closes gh-12324
7 years ago
Jon Schneider 25ff82f1d7 Improve docs on custom metrics
See gh-12324
7 years ago
dreis2211 3adced9962 Remove workaround for JDK-8023130 in RunProcess
With JDK 8 being the baseline and JDK 7 not being supported anymore we
can get rid of the workaround for a JDK 7 bug in
ProcessBuilder.inheritIO on Windows machines.

Closes gh-12337
7 years ago
Andy Wilkinson 9882d87e1b Start building against Spring Framework 5.0.5 snapshots
See gh-12340
7 years ago
Stephane Nicoll 6533278191 Update reference guide to stop mentioning setWebEnvironment
Closes gh-12330
7 years ago
Andy Wilkinson 1f5143de70 Avoid problems with Failsafe when building with JDK 10
See gh-12028
7 years ago
Andy Wilkinson d30c1fd9f8 Make javadoc plugin use Java 10-compatible version of Commons Lang 3
See gh-12028
7 years ago
Andy Wilkinson 4aa947c227 Use a Java 10-compatibile version of Maven’s site plugin
See gh-12028
7 years ago
Stephane Nicoll 7f5b7a6b47 Polish contribution
Closes gh-12326
7 years ago
Johnny Lim 751c444166 Polish
See gh-12326
7 years ago
Madhura Bhave 1c27a8e6e2 Move tests to ApplicationContextRunner 7 years ago
Andy Wilkinson 3370c23ab9 Skip the Gradle plugin when building with the full profile and JDK 10
See gh-12028
7 years ago
Andy Wilkinson 2b1252e282 Skip the Gradle Plugin when building with JDK 10
Previously, the JDK 10 build would fail as we build the plugin using
Gradle 4.0.x (the lowest version of Gradle that we support) and
Gradle 4.0.x doesn't work with Java 10.

Upgrading to Gradle 4.1, which appears to work with Java 10, was
considered but rejected for now as it introduces the risk that we
inadvertently use an API that's new in 4.1 and break our 4.0 support.

This commit goes for the extreme option and disables building the
Gradle Plugin when building with JDK.

See gh-12028
7 years ago
Andy Wilkinson 20654b9bc9 Remove no longer needed AspectJ version override with JDK 9+
See gh-12028
7 years ago
Andy Wilkinson f7c8be1877 Apply java9 profile to JDK 10 (and later) as well as JDK 9
See gh-12028
7 years ago
Andy Wilkinson 7fdc26351a Upgrade to Kotlin 1.2.30
Closes gh-12320
See gh-12028
7 years ago
Andy Wilkinson a7d05d4276 Avoid SUREFIRE-1439 by using 2.21.0-SNAPSHOT when building with JDK 10
See gh-12028
7 years ago
Andy Wilkinson 9f7e840416 Improve documentation for using configuration processor with Gradle
Closes gh-12316
7 years ago
Andy Wilkinson 4a3e0a231c Test the Gradle plugin against Gradle 4.6
Closes gh-12314
7 years ago
Andy Wilkinson e4a1fed3b8 Test the Gradle plugin against Gradle 4.6 7 years ago
Andy Wilkinson 188d120c9c Test the Gradle plugin against Gradle 4.5.1
Closes gh-12315
7 years ago
Johnny Lim 83ed0c7783 Make UserDetailsServiceAutoConfiguration.getOrDeducePassword() private
Closes gh-12295
7 years ago
igor-suhorukov 69fe32b1f5 Polish
Replace class "Stack" by more modern "Deque"

Closes gh-12304
7 years ago
Stephane Nicoll ef9fb1696c Merge branch '1.5.x' 7 years ago
Stephane Nicoll 8b5ad5b942 Replace outdated Spring Integration metrics section with a link 7 years ago
Stephane Nicoll 8a6664869e Fix typo 7 years ago
Phillip Webb 38f112b9e1 Update flattened POM elements
Update flattened POM rules to satisfy maven central
requirements.

Fixes gh-12290
7 years ago
Phillip Webb 9bee9e9cf9 Polish 7 years ago
Madhura Bhave df337eaf5e Fix author name 7 years ago
Andy Wilkinson 1761e50b03 Upgrade to Spring Integration 5.0.3
Closes gh-12235
7 years ago
Andy Wilkinson 8d1e69bca4 Polish Gradle plugin's javadoc 7 years ago
Andy Wilkinson 703de64842 Reinstate imports 7 years ago
Andy Wilkinson ef157d3649 Fix Checkstyle violations 7 years ago
Phillip Webb 7bc535e4fa Polish 7 years ago
Phillip Webb 67998e983f Revert "Include WebSecurityConfigurer beans in @WebMvcTest"
This reverts commit eef6fdb066.
7 years ago
Andy Wilkinson 01304959fa Polish "Remove redundant auto-configuration of SI Micrometer metrics"
Closes gh-12287
7 years ago
Gary Russell ddd820af9a Remove redundant auto-configuration of SI Micrometer metrics
Spring Integration no longer requires a `MicrometerMetricsFactory` to
support Micrometer metrics so there's nothing for Boot to
auto-configure.

See gh-12287
7 years ago
Andy Wilkinson c4c50b7c49 Only auto-configure LogbackMetrics when Logback is actually being used
Closes gh-12286
7 years ago
Andy Wilkinson 9b46221345 Escape backslashes so they are preserved during Properties parsing
Closes gh-12285
7 years ago
Andy Wilkinson 75ed406f47 Upgrade to Spring Security 5.0.3
Closes gh-12247
7 years ago
Johnny Lim f12c7ab38a Remove an unnecessary method in EndpointDiscoverer
Closes gh-12284
7 years ago
Stephane Nicoll 0f652cdf4f Fix injection point with proxied DataSource
Prior to this commit, the `ApplicationContext` couldn't start with a
JDK-proxied `HikariDataSource` as the JMX auto-configuration was
attempting to inject a (too narrowed) `HikariDataSource`.

This commit rather injects a regular `DataSource` and attempt to unwrap
it as a `HikariDataSource`.

Closes gh-12271
7 years ago
Stephane Nicoll 5fa71a1f94 Switch test to ApplicationContextRunner 7 years ago
Andy Wilkinson 299eca084c Upgrade to Spring Data Kay SR5
Closes gh-12234
7 years ago
Andy Wilkinson 35b7a16917 Merge branch '1.5.x' 7 years ago
Brian Clozel 14d36c9ad8 Polish
Closes gh-12268
7 years ago
Stephane Maldini 7866b946f7 Add Netty Compression support
Reactor Netty 0.7.5 now supports all Compression options.
Unlike previous Reactor Netty versions, the minimum compression
threshold is now based on the content-length instead of
accumulating for a while the data.

See gh-12268
7 years ago
Andy Wilkinson 0abe62e181 Upgrade to Jetty El 8.5.24.2
Closes gh-12279
7 years ago
Andy Wilkinson 85b63f3d38 Upgrade to Hibernate 5.2.14.Final
Closes gh-12278
7 years ago
Stephane Nicoll 4180762d6d Polish contribution
Closes gh-12236
7 years ago
igor-suhorukov 56cbc65e7b Polish
See gh-12236
7 years ago
Stephane Nicoll a93052f380 Upgrade to Reactor Bismuth-SR7
Closes gh-12233
7 years ago
Phillip Webb 7f8bb4e8eb Allow EndpointRequest matching without path bean
Update `EndpointRequest` to that the `PathMappedEndpoints` bean is
optional. A missing bean is treated as if there are no path mapped
endpoints.

Fixes gh-12238
7 years ago
Phillip Webb eef6fdb066 Include WebSecurityConfigurer beans in @WebMvcTest
Update `WebMvcTypeExcludeFilter` to include `WebSecurityConfigurer`
beans.

Fixes gh-12275
7 years ago
Phillip Webb c23b0e99f1 Fix failing PathRequestTests
Fix test failing due to commit d66496787d.

See gh-12238
7 years ago
Phillip Webb d66496787d Propagate exceptions in security matchers
Update `ApplicationContextRequestMatcher` and
`ApplicationContextServerWebExchangeMatcher` to use a supplier for
the context, rather than the context itself.

This allow exceptions to be propagated to subclasses which may choose
to deal with them.

See gh-12238
7 years ago
Phillip Webb 802cd856aa Remove test-autoconfigure dependency
Update `spring-boot-actuator-autoconfigure` so that it no longer has
a dependency on `spring-boot-test-autoconfigure`. This will allow us to
add test support for actuator concerns in the future if we need to.

Fixed gh-12270
7 years ago
Brian Clozel 438004efe5 Simplify HTTP compression support for Reactor Netty
This commit simplifies the HTTP compression configuration for Reactor
Netty servers.

Also, this commit removes a test for the
`server.compression.min-response-size` support, as this is only
supported when the HTTP response contains a `Content-Length` header.
Since most Spring WebFlux responses are using
`Transfer-Encoding: chunked`, we should not test for that case.

See gh-12268
7 years ago
Madhura Bhave 7f85322ddd Fix checkstyle 7 years ago
Andy Wilkinson dc36360155 Polish 7 years ago
Andy Wilkinson 9640881f38 Fix BuildInfo up-to-date check when group, name, or version changes
Previously, if the project's group, name, or version changed the
BuildInfo task would still be considered up-to-date as the values of
the project's properties were not reflected in the fields of the
BuildInfo instance.

This commit updates BuildInfo to copy the value of the project's
property to the corresponding BuildInfo field when the property is
read using its getter method on BuildInfo.

Closes gh-12266
7 years ago
Phillip Webb 3e4da3cc37 Polish 7 years ago
Andy Wilkinson c7ed5c3d4a Upgrade to EhCache 3.5.0
Closes gh-12256
7 years ago
Andy Wilkinson fe7927900e Upgrade to Spring Kafka 2.1.4.RELEASE
Closes gh-12246
7 years ago
Andy Wilkinson 21f2492d09 Upgrade to Micrometer 1.0.1
Closes gh-12245
7 years ago
Andy Wilkinson fdb9a1ea8f Consider time in BuildInfo up-to-date checks and allow it to be set
Closes gh-12111
Closes gh-12266
7 years ago
Andy Wilkinson 25a0031e10 Upgrade to Narayana 5.8.0.Final
Closes gh-12259
7 years ago
Andy Wilkinson 574a157faf Upgrade to Influxdb Java 2.9
Closes gh-12258
7 years ago
Andy Wilkinson d8d8a06f95 Upgrade to Elasticsearch 5.6.8
Closes gh-12257
7 years ago
Andy Wilkinson 2fdf84199a Upgrade to Javax Annotation 1.3.2
Closes gh-12255
7 years ago
Andy Wilkinson cffbad9b65 Upgrade to Rxjava2 2.1.10
Closes gh-12254
7 years ago
Andy Wilkinson c0d9e3d14e Upgrade to Netty 4.1.22.Final
Closes gh-12253
7 years ago
Andy Wilkinson 476b7087a7 Upgrade to Hikaricp 2.7.8
Closes gh-12252
7 years ago
Andy Wilkinson 410555a1b6 Upgrade to Caffeine 2.6.2
Closes gh-12251
7 years ago
Stephane Nicoll 9ce96fbd89 Document support for java.util.Duration
Closes gh-12244
7 years ago
Stephane Nicoll 6676967cc1 Polish 7 years ago
Stephane Nicoll 0b46408846 Polish 7 years ago
Stephane Nicoll b0f381bb6f Review conditions of ElasticsearchHealthIndicatorAutoConfiguration
Closes gh-12249
7 years ago
Stephane Nicoll cb96bbd9be Polish
See https://github.com/micrometer-metrics/micrometer-docs/issues/14
7 years ago
Andy Wilkinson 0ba192dead Merge branch '1.5.x' 7 years ago
Andy Wilkinson 25c293b872 Start building against Spring Security 5.0.3 snapshots
See gh-12247
7 years ago
Andy Wilkinson b0d2cca172 Start building against Spring Kafka 2.1.4 snapshots
See gh-12246
7 years ago
Andy Wilkinson 0a81b0a142 Start building against Spring Data Kay SR5 snapshots
See gh-12234
7 years ago
Andy Wilkinson 7f615eaa6c Start building against Spring Integration 5.0.3 snapshots
See gh-12235
7 years ago
Andy Wilkinson 37a66349fe Fall back to application conversion service in BindConverter
Previously, if a user declared a custom conversionService bean that
was not an ApplicationConversionService instance, the binder lost
the ability to convert a String to a Duration (along with any other
conversions that are specific to ApplicationConversionService).

This commit updates BindConverter so that, if the ConversionService
with which it is created is not an ApplicationConversionService, it
will use one as an additional service when performing conversion.

Closes gh-12237
7 years ago
Andy Wilkinson 30f79f2fb1 Use application name as convention for distribution's base name
Closes gh-12232
7 years ago
Andy Wilkinson 60ac2e5c09 Reduce the amount of garbage produced by JarFile
Previously, working with a JarFile created a large amount of garbage
that was allocated on the thread local allocation buffer (TLAB).
The TLAB allocations made a significant contribution to GC pressure
and slowed down startup. This commit reduces the amount of garbage
by making a number of changes.

Reading from a RandomAccessDataFile has been reworked to avoid
creating new RandomAccessFile instances. A single RandomAccessFile
is now created for an entire jar file and it is used to read data from
anywhere in that jar file, including entries in nested jar files. To
ensure that reads remain thread-safe, a lock is taken on the
RandomAccessFile that is shared by all RandomAccessDataFile instances
that are provided access to (portions of) the same jar file.

Reading all of the bytes from a RandomAccessData has been reworked to
avoid the use of an InputStream that was created, used to read the
data, and then thrown away. In place of the InputStream-based
mechanism a method has been introduced that returns all of the
RandomAccessData as a byte[]. Building on this change, a method has
also been introduced to read a portion of a RandomAccessData as a
byte[]. This avoids the need to create a new RandomAccessData
subsection where the subsection was only used to read its entire
contents and then thrown away.

Decoding of an MS-DOS datetime has been reworked to use LocalDataTime
rather than GregorianCalendar. The former produces less garbage than
the latter.

Closes gh-12226
7 years ago
Stephane Nicoll 569bad16da Polish 7 years ago
Stephane Nicoll b4c901cab6 Merge branch '1.5.x' 7 years ago
Phillip Webb c0d79b9273 Rationalize multi-document config file handling
Update `PropertySourceLoader` so that it no longer needs to deal with
matching multi-document files using the `spring.profile` property. The
loader now simply returns one or more `PropertSource` instances for a
given `Resource`.

All property matching now occurs in the `ConfigFileApplicationListener`.
This allows document processing logic to be contained in a single place,
and allows us to rationalize the algorithm so that negative matching
profiles are processed last.

Fixes gh-12159
7 years ago
Phillip Webb 3d8f760ea0 Upgrade to reactor Bismuth-BUILD-SNAPSHOT
See gh-12233
7 years ago
Phillip Webb 145400505d Only validate target values on zero depth
Update `ValidationBindHandler` so that validation only occurs when a
value is bound, or the bind depth is zero. This prevents validation from
triggering getters which may throw an exception.

Fixes gh-12227
7 years ago