Commit Graph

18155 Commits

Author SHA1 Message Date
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
2018-08-16 15:41:02 -07:00
Madhura Bhave b6a6b9eb20 Merge branch '2.0.x' 2018-08-16 13:15:21 -07:00
Madhura Bhave a75a84781e Fix merge issue 2018-08-16 13:13:08 -07:00
Madhura Bhave 9ce56c649b Merge branch '2.0.x' 2018-08-16 13:10:40 -07:00
Madhura Bhave 2d3fbe6feb Merge branch '1.5.x' into 2.0.x 2018-08-16 13:10:11 -07:00
Madhura Bhave bd482d7063 Add DefaultHandlerExceptionResolver to child context
Fixes gh-14084
2018-08-16 13:02:02 -07:00
Andy Wilkinson 90608fa40e Align test with changes made in ab1f5931
See gh-13511
2018-08-16 20:47:08 +01:00
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
2018-08-16 20:01:24 +01:00
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
2018-08-16 20:01:24 +01:00
Brian Clozel ab1f5931a0 Disable DispatcherServlet shouldHandleFailure
This change broke a Spring Security sample, reverting it.

See gh-13511
2018-08-16 20:14:01 +02:00
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
2018-08-16 18:19:38 +02:00
Stephane Nicoll 13f08e4c89 Polish 2018-08-16 17:38:26 +02:00
Andy Wilkinson 98b9a57252 Start building against Spring Data Lovelace RC2 snapshots
See gh-14081
2018-08-16 16:33:55 +01:00
Stephane Nicoll 8ffd44077d Upgrade to gmavenplus-plugin 1.6.1 2018-08-16 17:25:28 +02:00
Stephane Nicoll 8f2ab952f5 Polish javadoc formatting 2018-08-16 17:19:25 +02:00
Stephane Nicoll 16331616dc Merge branch '2.0.x' 2018-08-16 16:31:57 +02:00
Stephane Nicoll 376ef83dc0 Merge branch '1.5.x' into 2.0.x 2018-08-16 16:31:39 +02:00
Stephane Nicoll 5780ed386b Merge pull request #14002 from qct:reference-fix-for-1.5.x
* pr/14002:
  Polish "Add table for supported build tools"
  Add table for supported build tools
2018-08-16 16:29:02 +02:00
Stephane Nicoll dda66cc125 Polish "Add table for supported build tools"
Closes gh-14002
2018-08-16 16:28:23 +02:00
qct 685c3afdf8 Add table for supported build tools
See gh-14002
2018-08-16 16:27:56 +02:00
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
2018-08-16 14:55:57 +02:00
Stephane Nicoll dcd80c087e Harmonize task execution naming 2018-08-16 14:55:57 +02:00
Andy Wilkinson 8743f4dda9 Merge pull request #14004 from Filip Procházka
* gh-14004:
  Polish "Stop Elasticsearch REST client from pulling in commons-logging"
  Stop Elasticsearch REST client from pulling in commons-logging
2018-08-16 12:17:43 +01:00
Andy Wilkinson bb8dd25d24 Polish "Stop Elasticsearch REST client from pulling in commons-logging"
Closes gh-14004
2018-08-16 12:16:52 +01:00
Filip Procházka 7c43c89e11 Stop Elasticsearch REST client from pulling in commons-logging
See gh-14004
2018-08-16 12:16:31 +01:00
Andy Wilkinson 48f3e95791 Merge pull request #14052 from Artsiom Yudovin
* gh-14052:
  Polish "Allow properties to be configured using slice test annotations"
  Allow properties to be configured using slice test annotations
2018-08-16 11:29:56 +01:00
Andy Wilkinson 075a745e32 Polish "Allow properties to be configured using slice test annotations"
Closes gh-14052
2018-08-16 11:27:49 +01:00
artsiom 0cf1749e85 Allow properties to be configured using slice test annotations
See gh-14052
2018-08-16 11:27:49 +01:00
Andy Wilkinson 29d3ee1b41 Merge pull request #14035 from Johnny Lim
* gh-14035:
  Add "With an Immediate Pull Request"
2018-08-16 10:24:52 +01:00
Johnny Lim 5c47719e50 Add "With an Immediate Pull Request"
This commit also reorganises the "Please DO NOT Raise an Issue" cases.

Closes gh-14035
2018-08-16 10:24:23 +01:00
Andy Wilkinson 971caad6f8 Merge branch '2.0.x' 2018-08-16 10:19:05 +01:00
Andy Wilkinson 3e093035b4 Merge branch '1.5.x' into 2.0.x 2018-08-16 10:18:52 +01:00
Andy Wilkinson 91fcec8389 Merge pull request #14056 from Christoph Dreis
* gh-14056:
  Use Collections.list() where possible
2018-08-16 10:06:43 +01:00
dreis2211 d9939b00e2 Use Collections.list() where possible
Closes gh-14056
2018-08-16 10:05:40 +01:00
Stephane Nicoll 91e3856947 Polish 2018-08-16 10:52:09 +02:00
Andy Wilkinson 2cd74e4a26 Merge pull request #13498 from Eddú Meléndez
* gh-13498:
  Polish "Add support for multiple REST Docs configuration customizers"
  Add support for multiple REST Docs configuration customizers
2018-08-16 09:48:23 +01:00
Andy Wilkinson f10377bdb7 Polish "Add support for multiple REST Docs configuration customizers"
Closes gh-13498
2018-08-16 09:48:03 +01:00
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
2018-08-16 09:48:03 +01:00
Stephane Nicoll 6ac6d36395 Polish 2018-08-16 10:43:28 +02:00
Andy Wilkinson 0b6d675839 Merge pull request #14078 from Jan Groot
* gh-14078:
  Remove redundant spring-boot-starter dependencies from starters
2018-08-16 09:30:57 +01:00
Jan Groot 40d8726d47 Remove redundant spring-boot-starter dependencies from starters
Closes gh-14078
2018-08-16 09:30:54 +01:00
Brian Clozel 31a93035c1 Remove workaround for Netty resources cleanup
Closes gh-9146
2018-08-16 10:27:55 +02:00
Stephane Nicoll 9201db3200 Upgrade to Reactor Californium-M2
Closes gh-14077
2018-08-16 09:32:35 +02:00
Madhura Bhave 64f9d33956 Merge branch '2.0.x' 2018-08-15 16:58:21 -07:00
Madhura Bhave ff2b392324 Merge pull request #14067 from izeye
* gh-14067:
  Polish
2018-08-15 16:55:59 -07:00
Johnny Lim 5f3f1a1f11 Polish
Closes gh-14067
2018-08-15 16:54:46 -07:00
Stephane Nicoll 5ae4b43877 Upgrade to Assertj 3.11.0
Closes gh-14073
2018-08-15 19:30:43 +02:00
Andy Wilkinson 0ba6d8da4a Switch to Yahoo for OIDC as Google's cert is not yet trusted by Java 11
Until the fix for JDK-8209506 [1] is available in Java 11 builds,
SSL connections to services using Google's SSL certificate do not work
due to a lack of trust. This affects both our OAuth2 client samples
which were using https://accounts.google.com as an OpenID Connect
provider.

This commit switches the two samples to use Yahoo in place of Google.

See gh-14028

[1] https://bugs.openjdk.java.net/browse/JDK-8209506
2018-08-15 14:35:32 +01:00
Stephane Nicoll 4a68e2e4a1 Merge branch '2.0.x' 2018-08-15 15:00:17 +03:00
Stephane Nicoll ca4ca15ef2 Restore Jade Templates starter as it is compatible with Spring Boot 2 2018-08-15 14:44:48 +03:00