Commit Graph

3151 Commits (5af7835e830d47be876d0f2c88264da153e4e4d0)

Author SHA1 Message Date
artsiom 1c224e5fbb Add WebFluxRegistrations for custom WebFlux beans
This commit adds a new `WebFluxRegistrations` interface that
allows developers to register custom instances of key WebFlux
infrastructure components, such as `RequestMappingHandlerMapping`
and `RequestMappingHandlerAdapter`.

Closes gh-13997
6 years ago
Stephane Nicoll ba2f2a3727 Polish jaxb setup for JDK 9 and further 6 years ago
Brian Clozel 6ecbd8d21b Auto-Configure FormContentFilter in Spring MVC
Because `HttpPutFormContentFilter` has been deprecated in Spring
Framework 5.1, this commit updates the auto-configuration to replace it
with the new `FormContentFilter`. This new filter is building on the
previous one and supports HTTP DELETE requests as well.

Both filters should not be used in addition, so the former
configuration has been removed. This commit also adds configuration
metadata to let developers know about the configuration key change.

Closes: gh-13363
6 years ago
Stephane Nicoll 4fdb50417d Disable Groovy scripts for doc generation on Java11
See gh-14028
6 years ago
Stephane Nicoll d1ac774af2 Configure build to be compatible with Java 11
See gh-14028
6 years ago
Stephane Nicoll 930c838da9 Remove Narayana support
The Spring Boot integration is now handled by the Narayana project
itself at https://github.com/snowdrop/narayana-spring-boot

This commit removes our support.

Closes gh-12026
6 years ago
Stephane Nicoll 598f630b8c Upgrade to Hibernate 5.3.5.Final
Closes gh-14120
6 years ago
Stephane Nicoll 4e92d590ad Upgrade to Rest Assured 3.1.1
Closes gh-14119
6 years ago
Stephane Nicoll 0643d0a5d7 Upgrade to Rxjava2 2.2.0
Closes gh-14118
6 years ago
Stephane Nicoll d9a95df159 Upgrade to Xmlunit2 2.6.1
Closes gh-14117
6 years ago
Stephane Nicoll 29ee712a7c Upgrade to Selenium 3.14.0
Closes gh-14116
6 years ago
Stephane Nicoll 143f94aeb6 Upgrade to Selenium Htmlunit 2.32.1
Closes gh-14115
6 years ago
Stephane Nicoll 9b4a8e784e Upgrade to Lombok 1.18.2
Closes gh-14114
6 years ago
Stephane Nicoll 837d4d97da Upgrade to Pooled Jms Version 1.0.3
Closes gh-14113
6 years ago
Stephane Nicoll b20611633b Upgrade to Junit Jupiter 5.3.0-RC1
Closes gh-14112
6 years ago
Stephane Nicoll c399c73ee4 Upgrade to Jooq 3.11.4
Closes gh-14111
6 years ago
Stephane Nicoll 65528a1781 Upgrade to Kotlin 1.2.60
Closes gh-14110
6 years ago
Stephane Nicoll bbda4480a9 Upgrade to Influxdb Java 2.12
Closes gh-14109
6 years ago
Stephane Nicoll 409b684ecd Upgrade to Elasticsearch 6.3.2
Closes gh-14108
6 years ago
Stephane Nicoll ad33822df7 Upgrade to Groovy 2.5.2
Closes gh-14107
6 years ago
Stephane Nicoll 7454989c8e Upgrade to Log4j2 2.11.1
Closes gh-14106
6 years ago
Stephane Nicoll ddfb157717 Upgrade to Htmlunit 2.32
Closes gh-14105
6 years ago
Stephane Nicoll 5cb2c8ed4b Upgrade to Byte Buddy 1.8.17
Closes gh-14104
6 years ago
Stephane Nicoll 906b04e993 Upgrade to Mysql 8.0.12
Closes gh-14103
6 years ago
Stephane Nicoll 023a001ca5 Upgrade to Undertow 2.0.13.Final
Closes gh-14102
6 years ago
Stephane Nicoll 4485466fe4 Upgrade to Netty Tcnative 2.0.13.Final
Closes gh-14101
6 years ago
Stephane Nicoll 08bc604158 Upgrade to Hazelcast 3.10.4
Closes gh-14100
6 years ago
Stephane Nicoll cf8fb949ef Upgrade to Couchbase Client 2.6.1
Closes gh-14099
6 years ago
Brian Clozel 5e836b1231 Merge branch '2.0.x' 6 years ago
artsiom 51fd27fad4 Configure HiddenHttpMethodFilter for Spring WebFlux
Closes gh-14008
6 years ago
Stephane Nicoll 82e3a6a1a4 Polish 6 years ago
Brian Clozel 8c1df92566 Align with DispatcherServlet changes
The `shouldHandleFailure` configuration option has been removed from
`DispatcherServlet`.

See gh-13511
6 years ago
Stephane Nicoll f30453dc52 Upgrade to Spring Framework 5.1.0.RC2
Closes gh-14038
6 years ago
Stephane Nicoll 5cdff9bce6 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 22bc2bd7ba Upgrade to Httpasyncclient 4.1.4
Closes gh-14098
6 years ago
Stephane Nicoll 412ff051e3 Upgrade to Derby 10.14.2.0
Closes gh-14097
6 years ago
Stephane Nicoll b1805f4d37 Upgrade to Activemq 5.15.5
Closes gh-14096
6 years ago
Stephane Nicoll bffc542409 Upgrade to Jest 5.3.4
Closes gh-14095
6 years ago
Stephane Nicoll 05dfdfad1d Upgrade to Rxjava2 2.1.17
Closes gh-14094
6 years ago
Stephane Nicoll 83ee7fc934 Upgrade to Netty 4.1.28.Final
Closes gh-14093
6 years ago
Stephane Nicoll 8c29586699 Upgrade to Lettuce 5.0.5.RELEASE
Closes gh-14092
6 years ago
Stephane Nicoll a303109d93 Upgrade to Unboundid Ldapsdk 4.0.7
Closes gh-14091
6 years ago
artsiom d22c3e2787 Add property to disable HiddenHttpMethodFilter
Closes gh-14030
6 years ago
Stephane Nicoll 4bc5535c37 Rework "Remove redundant spring-boot-starter dependency"
This commit reworks 40d8726 as it has introduced an unfortunate side
effect for those who are using a starter with optional starter
dependencies.

`spring-boot-starter-web` defines the json and the tomcat starter. The
latter is part of a set of starters that do not bring the base starter
and the former can be excluded to use gson rather than jackson.

When such arrangement happens, spring-boot-starter-web no longer defines
the base starter (and therefore doesn't bring the core dependencies
that Spring Boot needs to bootstrap).

This commit reviews the starters that define optional starters and
reintroduce the base starter.

Closes gh-14076
6 years ago
Madhura Bhave d724f154f4 Merge branch '2.0.x' 6 years ago
Madhura Bhave b93c2b9a9f Allow actuator endpoints to be used with mvcMatchers
This commit changes AbstractWebMvcEndpointHandlerMapping to
be a MatchableHandlerMapping. Additionally, EndpointRequest,
now delegates to MvcRequestMatcher for Spring MVC applications.

For all other applications, AntPathRequestMatcher is used as
a delegate.

Closes gh-13962
6 years ago
Andy Wilkinson 90608fa40e Align test with changes made in ab1f5931
See gh-13511
6 years ago
Andy Wilkinson 30ee481c98 Do not block in DSInitializedPublisher when EMF is using async bootstrap
Previously, we would retrieve the EntityManagerFactory’s DataSource as
soon as it was being post-processed. When the native
EntityManagerFactory is being bootstrapped asynchronously, this
retrieval would block until bootstrapping had completed. This negated
some of the benefits of asynchronous bootstrapping.

This commit updates DataSourceInitializedPublisher so that it only
accesses the EntityManagerFactory’s DataSource once its bootstrapping
has completed. This is achieved using a decorated JpaVendorAdapter
that is called one the boostrapping has completed.

Closes gh-14061
6 years ago
Andy Wilkinson f28528a527 Allow Data JPA's bootstrap mode to be configured via the environment
In Spring Data Lovelace, repositories' bootstrap mode can be
configured via @EnableJpaRepositories. This commit adds support for
configuring the mode via the environment rather than having to use
the annotation. Additionally, when deferred or lazy bootstrapping is
being used, the LocalContainerEntityManagerFactoryBean is configured
to use a bootstrap executor. This allows JPA's initialization to be
performed on a separate thread, allowing the rest of application
context initialization to proceed in parallel.

Closes gh-13833
6 years ago
Brian Clozel ab1f5931a0 Disable DispatcherServlet shouldHandleFailure
This change broke a Spring Security sample, reverting it.

See gh-13511
6 years ago
Brian Clozel f2511b7fa3 Improve Web DEBUG logging output configuration
Since SPR-16946, Spring Framework revisited the DEBUG logging output
developers get while working on Spring MVC and Spring WebFlux
applications.

This commit aligns to those changes where DEBUG output was produced
in Spring Boot (especially in `DefaultErrorWebExceptionHandler`).

This also enables DEBUG logging on the related packages when running an
application with Spring Boot Developer Tools, providing a better
development experience.

This is also adding the new `spring.insights.web.log-request-details`
configuration property, which logs additional information about the
incoming requests at the DEBUG and TRACE levels. Since that information
can be sensitive (e.g. credentials, tokens, etc.), this property is not
enabled by default nor activated by the Developer Tools.

Closes: gh-13511
6 years ago
Andy Wilkinson 98b9a57252 Start building against Spring Data Lovelace RC2 snapshots
See gh-14081
6 years ago
Stephane Nicoll 8ffd44077d Upgrade to gmavenplus-plugin 1.6.1 6 years ago
Stephane Nicoll 8f2ab952f5 Polish javadoc formatting 6 years ago
Stephane Nicoll 16331616dc Merge branch '2.0.x' 6 years ago
Stephane Nicoll 376ef83dc0 Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll de470540ea Add auto-configuration support for TaskScheduler
This commit adds support for providing a default ThreadPoolTaskScheduler
with sensible defaults. A new TaskSchedulerBuilder is provided with
defaults from the `spring.task.scheduler.*` namespace and can be used
to create custom instances.

If no custom `TaskScheduler` bean is present, `@EnableScheduling` now
uses the auto-configured task scheduler.

Closes gh-1397
6 years ago
Stephane Nicoll dcd80c087e Harmonize task execution naming 6 years ago
Andy Wilkinson bb8dd25d24 Polish "Stop Elasticsearch REST client from pulling in commons-logging"
Closes gh-14004
6 years ago
Filip Procházka 7c43c89e11 Stop Elasticsearch REST client from pulling in commons-logging
See gh-14004
6 years ago
Andy Wilkinson 075a745e32 Polish "Allow properties to be configured using slice test annotations"
Closes gh-14052
6 years ago
artsiom 0cf1749e85 Allow properties to be configured using slice test annotations
See gh-14052
6 years ago
Andy Wilkinson 971caad6f8 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 3e093035b4 Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 91e3856947 Polish 6 years ago
Andy Wilkinson f10377bdb7 Polish "Add support for multiple REST Docs configuration customizers"
Closes gh-13498
6 years ago
Eddú Meléndez 4d310f0d5a Add support for multiple REST Docs configuration customizers
This commit introduces support for multiple configuration customizers
for REST Docs with MockMvc, WebTestClient, and REST Assured.

Closes gh-13498
6 years ago
Stephane Nicoll 6ac6d36395 Polish 6 years ago
Jan Groot 40d8726d47 Remove redundant spring-boot-starter dependencies from starters
Closes gh-14078
6 years ago
Brian Clozel 31a93035c1 Remove workaround for Netty resources cleanup
Closes gh-9146
6 years ago
Stephane Nicoll 9201db3200 Upgrade to Reactor Californium-M2
Closes gh-14077
6 years ago
Madhura Bhave 64f9d33956 Merge branch '2.0.x' 6 years ago
Johnny Lim 5f3f1a1f11 Polish
Closes gh-14067
6 years ago
Stephane Nicoll 5ae4b43877 Upgrade to Assertj 3.11.0
Closes gh-14073
6 years ago
Stephane Nicoll 4a68e2e4a1 Merge branch '2.0.x' 6 years ago
Stephane Nicoll ca4ca15ef2 Restore Jade Templates starter as it is compatible with Spring Boot 2 6 years ago
Stephane Nicoll c00fc6449b Merge branch '2.0.x' 6 years ago
dreis2211 59d911d6e0 Remove @UsesUnsafeJava annotations
Closes gh-14072
6 years ago
Johnny Lim d5eaaf6e2a Polish
Closes gh-14049
6 years ago
Stephane Nicoll d0f272960e Merge branch '2.0.x' 6 years ago
Johnny Lim b4abccc07c Polish
See gh-14049
6 years ago
Madhura Bhave baaf8c95ff Polish "Update OIDC configuration"
Closes gh-14065
6 years ago
Josh Cummings e34723efd2 Update OIDC config following Spring Security changes
The location changed for the class that provides a ClientRegistration
via an issuer URL, and this updates Spring Boot accordingly.
6 years ago
Spencer Gibb 8427341480 Exclude protobuf-java from mysql-connector-java
Closes gh-14062
6 years ago
Madhura Bhave a8a75f1bbb Merge branch '2.0.x' 6 years ago
Madhura Bhave 895d092640 PropertySourcesLoader with highest precedence should win
Fixes gh-13955
6 years ago
Andy Wilkinson e3e3a44045 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 1973e342c9 Do not use lambda for task action as it breaks up-to-date checks
Due to gradle/gradle#5510, using a lambda for a task action breaks
up-to-date checks in certain circumstances.

This commit updates JavaPluginAction to use an inner-class in place
of a lambda for the action that it adds to JavaCompile tasks. A test
has not been added as it does not appear to be possible to reproduce
it with a TestKit-based test.

Closes gh-14054
6 years ago
Stephane Nicoll f187ab72a4 Polish 6 years ago
Andy Wilkinson 9032e5b470 Update SSL tests and certs for Java 11 and TLSv1.3
See gh-14028
6 years ago
Stephane Nicoll 10fe9ba0d9 Merge branch '2.0.x' 6 years ago
Stephane Nicoll da1858f620 Upgrade to Hibernate Validator 6.0.12.Final
Closes gh-14053
6 years ago
Madhura Bhave 727e9c6b0f Merge branch '2.0.x' 6 years ago
Madhura Bhave dfb97eb0f5 Convert environment if webApplicationType changes
If the web application type is set via properties,
it is available only after binding. The environment needs
to be converted to the appropriate type if it does not match.
If a custom environment is set, it is not converted.

Fixes gh-13977
6 years ago
Andy Wilkinson 04215e6651 Polish 6 years ago
Stephane Nicoll e7b5d95681 Adapt ServerProperties with a default size to DataSize
See gh-13974
6 years ago
Stephane Nicoll 6734e11222 Adapt MultipartConfig to use DataSize support
See gh-13974
6 years ago
Stephane Nicoll 94013aaba6 Add support for DataSize
This commit adds support for Spring Framework's `DataSize` allowing to
express a size in bytes and other convenient units.

Similar to the `Duration` support introduced previously, this commit
adds transparent binding support as well as detection of default values
in `@ConfigurationProperties`-annotated object.

Closes gh-13974
6 years ago
Andy Wilkinson 78dd7bd934 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 6e5ff77bb0 Merge branch '1.5.x' into 2.0.x
The 3.0.1 version of the Maven Javadoc Plugin contains a bug [1] that
means that a link URL must redirect otherwise it is ignored.

[1] https://issues.apache.org/jira/browse/MJAVADOC-532
6 years ago
Andy Wilkinson 76d9b1cdbd Merge branch '2.0.x' 6 years ago
Andy Wilkinson 58aaf4863f Merge pull request #14032 from Nikolay Rybak
* gh-14032:
  Propagate retryWrites flag from connection URI to ReactiveMongoClient
6 years ago
Nikolay Rybak 7759dcd9df Propagate retryWrites flag from connection URI to ReactiveMongoClient
Closes gh-14032
6 years ago
Andy Wilkinson e41519b6b1 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 29e38f4af8 Merge branch '1.5.x' into 2.0.x 6 years ago
dreis2211 c9bdc98935 Add missing @Override
Closes gh-14043
6 years ago
Stephane Nicoll eede660b84 Merge branch '2.0.x' 6 years ago
Stephane Nicoll f4b0101632 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson da550efc6b Merge branch '2.0.x' 6 years ago
Andy Wilkinson 263e157ef0 Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll bfd616ac7a Prevent JavaFX to be added to the classpath with Java 11
See https://hibernate.atlassian.net/browse/HV-1644
6 years ago
Stephane Nicoll 0d04d7adf8 Migrate @EventListener to ApplicationListener
Closes gh-14041
6 years ago
Stephane Nicoll 9d40df9a2a Upgrade to Mockito 2.21.0
Closes gh-14039
6 years ago
Stephane Nicoll ca8bdc8a72 Resume building against Spring Framework snapshots
See gh-14038
6 years ago
Stephane Nicoll 817a8a8302 Polish 6 years ago
Stephane Nicoll 0ca8f1083a Fix ClassCastException message detection on Java 11
This commit also fixes the detection of a ClassCastException that can
be safely ignored on the module path with Java 9

Closes gh-14033
6 years ago
Stephane Nicoll 295995829f Remove outdated Java10 profile 6 years ago
Andy Wilkinson 2756d87b3f Merge branch '2.0.x' 6 years ago
Andy Wilkinson 27f5e46587 Polish "Fix NPE in FlywayEndpoint when migration.installedOn is null"
Closes gh-14019
6 years ago
artsiom 83fbdc6ea8 Fix NPE in FlywayEndpoint when migration.installedOn is null
See gh-14019
6 years ago
Johnny Lim b90113ac33 Align server.tomcat.max-swallow-size with Tomcat's default value
Closes gh-14025
6 years ago
Johnny Lim 05a7d21305 Polish ItemMetadata.buildName()
Closes gh-14024
6 years ago
Johnny Lim 101cc59b7d Polish
Closes gh-14023
6 years ago
Stephane Nicoll a12ca0a0dc Merge branch '2.0.x' 6 years ago
Stephane Nicoll a023bd030a Add configurable timeout for Couchbase health indicator
This commit makes sure to use a configurable timeout to check if the
Couchbase cluster is up, rather than relying on the default that can be
quite long.

Closes gh-13879
6 years ago
Stephane Nicoll 7b191bb9ed Merge branch '2.0.x' 6 years ago
Stephane Nicoll 21691f0b20 Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 13d5b00fe7 Merge branch '2.0.x' 6 years ago
Stephane Nicoll fbf3c48bf8 Fix setter detection in `configprops` endpoint
Previously, the setter of a property whose second letter is upper-case (
such as `oAuth2Uri`) was not detected properly. The JavaBean spec states
that, in such a case, the first letter should not be capitalized (i.e.
the setter should be `setoAuth2Uri` rather than `setOAuth2Uri`).

This commit makes sure that Jackson uses standard bean names and fixes
the setter detection algorithm to take this case into account.

Closes gh-13878
6 years ago
Stephane Nicoll a96856c99a Merge branch '2.0.x' 6 years ago
dreis2211 72707b9d58 Polish OnWebApplicationCondition
Closes gh-14015
6 years ago
Stephane Nicoll cc79cbd09f Merge branch '2.0.x' 6 years ago
dreis2211 47ed48625c Fix typo
Closes gh-14013
6 years ago
Madhura Bhave bc6e4e6e55 Add auto-config for reactive OAuth2 Resource Server
Closes gh-13948
6 years ago
Madhura Bhave 319fec4be4 Polish 6 years ago
Stephane Nicoll 5cfe8dbee9 Polish 6 years ago
Stephane Nicoll 7e499590c6 Merge branch '2.0.x' 6 years ago
Stephane Nicoll e68dc2d3c4 Prune 3rd party starters that are not compatible with Spring Boot 2
Those can be re-added at any time there is Spring Boot 2 support

Closes gh-13510
6 years ago
Stephane Nicoll 60d8c7979f Polish 6 years ago
Stephane Nicoll ace242db7a Fix javadoc generation on Java 9/10 6 years ago
Madhura Bhave 5bf9d31d91 Fix checkstyle 6 years ago
Madhura Bhave d6b6a5f81f Add auto-config for spring-security-oauth2-resource-server
Closes gh-13787
6 years ago
Stephane Nicoll 6a2cb883a5 Merge branch '2.0.x' 6 years ago
Stephane Nicoll f731f6aa39 Restore customization of HTTP trace request headers
This commit restore the use of the `postProcessRequestHeaders` method
when overridden in a custom HttpExchangeTracer implementation.

Closes gh-13924
6 years ago
Stephane Nicoll 14a9ec8711 Polish 6 years ago
Stephane Nicoll e6b44189e0 Polish "Add global support for JMX unique names"
This commit ensures that the new "spring.jmx.unique-names" property
deprecates the Endpoint's specific property as they share the same goal.

If both are set with an incompatible value, an exception is thrown
inviting the user to update their configuration.

Closes gh-13990
6 years ago
artsiom 1a3f08d772 Add global support for JMX unique names
See gh-13990
6 years ago
Stephane Nicoll c071f34a4a Add auto-configuration support for TaskExecutor
This commit adds support for providing a default ThreadPoolTaskExecutor
with sensible defaults. A new TaskExecutorBuilder is provided with
defaults from the `spring.task.*` namespace and can be used to create
custom instances.

If no custom `Executor` bean is present, `@EnableAsync` now uses the
auto-configure application task executor. Same goes for the async support
in Spring MVC.

Closes gh-1563
6 years ago
Stephane Nicoll 193b2f187b Upgrade to Maven Compiler Plugin 3.8.0
Closes gh-14000
6 years ago
Gary Russell 740d64242f Upgrade to Kafka 2.0.0
Closes gh-13983
6 years ago