Commit Graph

21208 Commits

Author SHA1 Message Date
Stephane Nicoll
a5fd3fbfbd Merge branch '1.5.x' 2018-01-17 15:53:28 +01:00
Stephane Nicoll
7ea4501fd5 Polish 2018-01-17 15:47:53 +01:00
Stephane Nicoll
4f0a94e362 Merge pull request #11621 from eddumelendez:gh-11613
* pr/11621:
  Polish "Add test to spring-boot-sample-quartz"
  Add test to spring-boot-sample-quartz
2018-01-17 14:32:42 +01:00
Stephane Nicoll
51f0d88eec Polish "Add test to spring-boot-sample-quartz"
Closes gh-11621
2018-01-17 14:31:52 +01:00
Eddú Meléndez
5f1f04a33a Add test to spring-boot-sample-quartz
See gh-11621
2018-01-17 14:27:02 +01:00
Stephane Nicoll
8ffce59fe4 Merge pull request #11655 from izeye:polish-20170117
* pr/11655:
  Polish
2018-01-17 14:16:29 +01:00
Johnny Lim
e7185ea2b1 Polish
Closes gh-11655
2018-01-17 14:16:07 +01:00
Stephane Nicoll
4f194c215d Merge pull request #11624 from igor-suhorukov:master
* pr/11624:
  Polish "Fix potential resource leaks"
  Fix potential resource leaks
2018-01-17 14:15:52 +01:00
Stephane Nicoll
d43346d6c2 Polish "Fix potential resource leaks"
Closes gh-11624
2018-01-17 13:56:53 +01:00
igor-suhorukov
5a4238acfc Fix potential resource leaks
See gh-11624
2018-01-17 13:54:50 +01:00
Stephane Nicoll
0b22eb90b5 Merge pull request #11648 from izeye:fix-wrong-import
* pr/11648:
  Fix a wrong import for SocketChannel
2018-01-17 13:51:33 +01:00
Johnny Lim
d27b46cf73 Fix a wrong import for SocketChannel
Closes gh-11648
2018-01-17 13:49:57 +01:00
Stephane Nicoll
e1223225b9 Merge pull request #11649 from eddumelendez:junit_jupiter_5.0.3
* pr/11649:
  Upgrade to JUnit Jupiter 5.0.3
2018-01-17 13:48:42 +01:00
Eddú Meléndez
cecef7a7df Upgrade to JUnit Jupiter 5.0.3
Closes gh-11649
2018-01-17 13:48:06 +01:00
Stephane Nicoll
f8af6c8134 Merge branch '1.5.x' 2018-01-17 13:42:56 +01:00
Stephane Nicoll
d8b1f1692a Fix type detection with annotated getter
This commit makes sure that the `type` of a property is generated
property if the getter of the property is annotated. Previously, a type
implementation may expose the annotation information.

Closes gh-11512
2018-01-17 13:30:57 +01:00
Andy Wilkinson
ffc99b03dd Remove use of deprecated Gradle API from plugin's public API
This commit removes the use of the incubating PropertyState and
Provider API that was introduced in Gradle 4.0 and deprecated in
Gradle 4.3. A not-deprecated-but-still-incubating replacement was
introduced in Gradle 4.3. The short life of PropertyState and Provider
has made me wary of using an incubating Gradle API in our public API
as it may not be stable for long. Therefore, this commit does not move
to the replacement as it is incubating. Instead, it falls back to
using Gradle's convention mapping. This is internal API, but its use
is not part of our public API and I perceive the risk of using it to
be lower than using the deprecated and/or incubating API alternatives.

Closes gh-11640
2018-01-17 12:20:30 +00:00
Andy Wilkinson
5e17fc775c Test the Gradle plugin against Gradle 4.4.1
Closes gh-11654
2018-01-17 11:57:02 +00:00
Andy Wilkinson
2668e41dd5 Make it easier to just use Boot’s dependency management with Gradle
Closes gh-11059
2018-01-17 11:39:59 +00:00
Andy Wilkinson
3cf1fb6763 Polish formatting in Actuator API documentation 2018-01-16 20:46:42 +00:00
Andy Wilkinson
67a299020b Rework mappings endpoint
Improve the structure of the response and include mappings from
WebFlux and Servlet and Filter registrations in addition to the
mappings from Spring MVC.

Closes gh-9979
2018-01-16 18:26:59 +00:00
Brian Clozel
1f26a0314c Sanitize inputs in default reactive HTML error view
This commit uses HTML escaping to sanitize error inputs that are
displayed in the default reactive HTML error view.

Fixes gh-11582
2018-01-16 17:20:12 +01:00
Brian Clozel
381d759ef1 Support server.compression with reactive servers
This commit adds support for HTTP compression with reactive servers,
with the following exceptions:

* `server.compression.mime-types` and
`server.compression.exclude-user-agents` are not supported by Reactor
Netty at the moment

* `server.compression.min-response-size` is only supported by Reactor
Netty right now, since other implementations rely on the
`"Content-Length"` HTTP response header to measure the response size
and most reactive responses are using `"Transfer-Encoding: chunked"`.

Closes gh-10782
2018-01-16 16:01:34 +01:00
Stephane Nicoll
bf88073f7e Tighten Liquibase auto-configuration to require Liquibase 3
Closes gh-11641
2018-01-16 12:02:03 +01:00
Stephane Nicoll
023bc13fb6 Merge branch '1.5.x' 2018-01-16 11:46:42 +01:00
Stephane Nicoll
6c191e149d Fix broken usage of LiquibaseServiceLocatorApplicationListener 2018-01-16 11:43:36 +01:00
Brian Clozel
1e648801bd Move spring.mvc.media-types to content-negotiation
This commit moves "spring.mvc.media-types" to the
"spring.mvc.content-negotiation.*" namespaces introduced in gh-11105.

Closes gh-11636
2018-01-16 11:35:49 +01:00
Stephane Nicoll
76057be9ac Merge branch '1.5.x' 2018-01-16 11:15:51 +01:00
Andy Wilkinson
f7ddacf937 Update AuditEventRepository javadoc to describe behaviour of after
The behaviour was changed in 2b99962a. This commit updates the
javadoc to hopefully clarify that Instant.isAfter(Instant) is used.

Closes gh-11612
2018-01-16 10:10:40 +00:00
Stephane Nicoll
08ec3d2735 Improve class condition check
This commit improves a class condition check on the actual
implementation rather than the general purpose interface.

Closes gh-11608
2018-01-16 11:09:56 +01:00
Andy Wilkinson
5b8a2f9675 Improve context hierarchy handling in Actuator endpoints
Previously, a number of Actuator endpoints ignored a context hierarchy
or assumed that it would always be linear. This commit reworks the
affected endpoints so that the no longer assume a linear hierarchy.

A side-effect of a non-linear hierarchy is that there may be multiple
different beans with the same name (in a linear hierarchy, a bean
with the same name as one in an ancestor context, replaces that bean).
The affected endpoints have also been updated so that, when bean names
are used as keys, those keys are grouped by application context. This
prevents a bean in one context from accidentially overwriting a bean
in another context.

Closes gh-11019
2018-01-16 09:53:52 +00:00
Stephane Nicoll
81d6afe5ac Merge pull request #11604 from sdeleuze:test-rest-template-improvements
* pr/11604:
  Improve Kotlin extensions doc about type erasure
2018-01-16 10:21:20 +01:00
sdeleuze
d4c91d2fe0 Improve Kotlin extensions doc about type erasure
Since type erasure can be fixed only when using
ParameterizedTypeReference based Java methods, TestRestTemplate
API documentation should be updated to specify which extensions
are subject to type erasure, and which are not.

Closes gh-11604
2018-01-16 10:19:12 +01:00
Stephane Nicoll
b7a993358d Merge branch '1.5.x' 2018-01-16 09:58:06 +01:00
Stephane Nicoll
8529913b24 Improve error message when no ServerProperties bean is found
Closes gh-11511
2018-01-16 09:53:08 +01:00
Stephane Nicoll
ebcfe79d6b Merge pull request #11638 from garyrussell:kafkadocs
* pr/11638:
  Polish Kafka documentation
2018-01-16 08:48:55 +01:00
Gary Russell
0af67b86ed Polish Kafka documentation
Closes gh-11638
2018-01-16 08:48:34 +01:00
Brian Clozel
22c22a1ced Move server.session.* to server.servlet.session.*
Closes gh-11589
2018-01-15 17:50:32 +01:00
Stephane Nicoll
199d2e30d7 Polish 2018-01-15 15:15:34 +01:00
Andy Wilkinson
23d8d608c4 Polish 2018-01-15 13:35:46 +00:00
Stephane Nicoll
b2ec7c58a6 Merge branch '1.5.x' 2018-01-15 12:13:24 +01:00
Stephane Nicoll
cbefc7bf83 Polish doc
Closes gh-11635
2018-01-15 12:11:33 +01:00
Stephane Nicoll
e258884dd3 Polish doc
Closes gh-11529
2018-01-15 12:09:43 +01:00
Andy Wilkinson
f7e408945e Use Instant for Session creation and last accessed times
Closes gh-10976
2018-01-15 10:59:22 +00:00
Brian Clozel
67e5897c40 Disable suffix pattern matching in Spring MVC
This commit disables by default suffix pattern matching in Spring MVC
applications. As described in the Spring MVC documentation (see
https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-requestmapping-suffix-pattern-match),
this is considered as best practice.

This change also introduces new configuration properties to achieve
similar results in a safer way (using query parameters) or to rollback
to the former default.

Closes gh-11105
2018-01-15 11:58:26 +01:00
Stephane Nicoll
2bf662f231 Remove hdrhistogram managed dependency
Closes gh-10923
2018-01-15 11:36:28 +01:00
Stephane Nicoll
29ebb75d0b Merge pull request #11630 from izeye:polish-20180114
* pr/11630:
  Polish
2018-01-15 10:31:45 +01:00
Johnny Lim
77150f8dc9 Polish
Closes gh-11630
2018-01-15 10:20:31 +01:00
Stephane Nicoll
3f88906b97 Fix handling of ResponseStatusException
This commit updates DefaultErrorAttributes to handle
ResponseStatusException explicitly. This exception is used in a
WebFlux application to signal that the processing of the query has
failed with an HTTP status code and a reason phrase. The latter is now
properly mapped to the `message` attribute of the response body.

Closes gh-11614
2018-01-15 10:03:15 +01:00
Stephane Nicoll
fdd501c943 Merge pull request #11619 from eddumelendez:spring_session_2.0.0
* pr/11619:
  Upgrade to Spring Session 2.0.0.RELEASE
2018-01-14 09:34:03 +01:00