704 Commits

Author SHA1 Message Date
Madhura Bhave
f5deebf0cb Support authorization_code grant for OAuth2 client
This commit also refactors OAuth2 client properties. With
the added support for authorization_code clients, client
registrations are now divided into `login` and `authorization_code`.
An environment post processor is used for backward compatibility with
old Open ID Connect login clients.

Closes gh-13812
2018-08-28 13:49:07 -07:00
Stephane Nicoll
b7ae55866e Polish "Improve Kafka Auto-configuration"
Closes gh-14215
2018-08-28 17:10:49 +02:00
Gary Russell
59c6dc5c7a Improve Kafka Auto-configuration
- transaction manager
- error handler
- after rollback processor

See gh-14215
2018-08-28 16:22:12 +02:00
Stephane Nicoll
e8d21fc964 Merge branch '2.0.x' 2018-08-28 16:21:33 +02:00
Stephane Nicoll
3997b3ae5e Polish 2018-08-28 16:21:17 +02:00
Stephane Nicoll
56329e67d7 Polish "Add support for com.mongodb.client.MongoClient"
Closes gh-14176
2018-08-28 15:24:31 +02:00
Johnny Lim
cf17106d8d Polish
Closes gh-14212
2018-08-27 17:28:27 +02:00
Stephane Nicoll
a86d7cdb97 Add execution id to repackage goal
Closes gh-14210
2018-08-27 13:56:48 +02:00
Johnny Lim
fe3fe0fa63 Polish
Closes gh-14202
2018-08-26 10:48:05 +02:00
Madhura Bhave
cf31325e5d Polish "OIDC issuer uri in OAuth resource server config"
Closes gh-14190
2018-08-24 14:57:45 -07:00
artsiom
0c299bbc1f Support OIDC issuer uri in OAuth resource server config 2018-08-24 14:19:14 -07:00
mhyeon.lee
c827530f4b Add user-info-authentication-method
Closes gh-13865
2018-08-24 12:38:27 -07:00
Stephane Nicoll
dea67e9aca Merge branch '2.0.x' 2018-08-24 18:05:18 +02:00
Stephane Nicoll
af426e383f Review slice documentation to clarify the scope and alternative options
Closes gh-13810
2018-08-24 18:05:05 +02:00
Stephane Nicoll
876def3693 Merge branch '2.0.x' 2018-08-24 17:08:45 +02:00
Stephane Nicoll
f53e6c701f Improve actuator documentation about the types supported for endpoints
Closes gh-13896
2018-08-24 17:08:29 +02:00
Stephane Nicoll
086fec09ef Merge branch '2.0.x' 2018-08-24 16:41:13 +02:00
Stephane Nicoll
f5482a33a3 Document custom DispatcherServlet requirement
Closes gh-14145
2018-08-24 16:38:24 +02:00
Stephane Nicoll
7eecfe3108 Polish
See gh-14184
2018-08-24 11:50:18 +02:00
Stephane Nicoll
82280e34c7 Merge branch '2.0.x' 2018-08-24 11:49:30 +02:00
Johnny Lim
fb71174c24 Polish
Closes gh-14184
2018-08-24 11:48:41 +02:00
Madhura Bhave
fc4340c5d4 Rename OAuth2 resource server properties
Closes gh-14165
2018-08-23 16:51:27 -07:00
Stephane Nicoll
8fcd3fcd4c Fix javadoc generation on Java10+ 2018-08-23 14:49:56 +02:00
Johnny Lim
9602a32a8d Polish
Closes gh-14172
2018-08-23 11:40:44 +02:00
Brian Clozel
53f3982748 Support Jetty RS as HTTP driver for WebClient
This commit adds a new auto-configuration choice for
`ClientHttpConnector`, this time using the Jetty RS HTTP client library
if available.

This is the best choice in case the application runs on a Jetty reactive
server, as both client and server will share resources.

Closes gh-14005
2018-08-23 10:51:43 +02:00
Brian Clozel
e2a7594246 Configure Reactor HTTP client resources
This commit adds support for the new `ReactorResourceFactory` and
ensures that such a bean is created and destroyed with the application
context. This will create a `ClientHttpConnector` bean, to be configured
on the `WebClient.Builder` instance - or let developers create their own
`ClientHttpConnector` bean to override that opinion.

By default, the `ReactorResourceFactory` is configured to participate
with the global resources, for better efficiency.

Closes gh-14058
2018-08-22 19:14:34 +02:00
Stephane Nicoll
6d4bab911c Polish "Add Kafka Streams auto-configuration"
Closes gh-14021
2018-08-22 16:08:25 +02:00
Gary Russell
a7acbbd625 Add Kafka Streams auto-configuration
See gh-14021
2018-08-22 15:41:42 +02:00
Stephane Nicoll
df6e2170a7 Polish 2018-08-21 10:09:50 +02:00
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
2018-08-17 15:25:14 +02:00
Stephane Nicoll
4fdb50417d Disable Groovy scripts for doc generation on Java11
See gh-14028
2018-08-17 15:16:07 +02:00
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
2018-08-17 15:08:55 +02:00
Stephane Nicoll
82e3a6a1a4 Polish 2018-08-17 13:29:07 +02:00
artsiom
d22c3e2787 Add property to disable HiddenHttpMethodFilter
Closes gh-14030
2018-08-17 10:29:06 +02: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
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
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
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
075a745e32 Polish "Allow properties to be configured using slice test annotations"
Closes gh-14052
2018-08-16 11:27:49 +01:00
Stephane Nicoll
91e3856947 Polish 2018-08-16 10:52:09 +02:00
Madhura Bhave
64f9d33956 Merge branch '2.0.x' 2018-08-15 16:58:21 -07:00
Johnny Lim
5f3f1a1f11 Polish
Closes gh-14067
2018-08-15 16:54:46 -07:00
Johnny Lim
d5eaaf6e2a Polish
Closes gh-14049
2018-08-15 10:43:46 +03:00
Stephane Nicoll
e7b5d95681 Adapt ServerProperties with a default size to DataSize
See gh-13974
2018-08-13 16:43:23 +03:00
Stephane Nicoll
6734e11222 Adapt MultipartConfig to use DataSize support
See gh-13974
2018-08-13 16:43:23 +03:00
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
2018-08-13 16:43:23 +03:00
Andy Wilkinson
78dd7bd934 Merge branch '2.0.x' 2018-08-13 13:18:55 +01:00
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
2018-08-13 13:16:50 +01:00