Commit Graph

23402 Commits

Author SHA1 Message Date
Verónica Vásquez
3c8fa3bbd0 Add @LocalRSocketServerPort support
Add an appication context initializer to detect and store the
active RSocket port in the Environment under
`local.rsocket.server.port`.

Additionally add a `@LocalServerPort` that provides a convenient
alternative to `@Value`.

See gh-18287

Co-authored-by: Eddú Meléndez <eddu.melendez@gmail.com>
2019-09-28 22:03:36 -07:00
Phillip Webb
ec747d6b2e Merge pull request #18374 from dreis2211
* pr/18374:
  Simplify pipe escaping for reference doc tables
  Avoid need to escape pipe character in reference tables

Closes gh-18374
2019-09-28 22:03:05 -07:00
dreis2211
370998e91e Simplify pipe escaping for reference doc tables
Replace `{vbar}` with an escaped pipe character. Unfortunately
`{vbar}` does not render correctly with PDF generation.

See gh-18374
2019-09-28 22:02:27 -07:00
dreis2211
8a6e254465 Avoid need to escape pipe character in reference tables 2019-09-28 22:02:27 -07:00
Phillip Webb
664cd15cfd Merge pull request #18384 from dreis2211
* pr/18384:
  Polish some external documentation links

Closes gh-18384
2019-09-28 22:01:49 -07:00
dreis2211
37dbe647f2 Polish some external documentation links
See gh-18384
2019-09-28 22:01:05 -07:00
Phillip Webb
b649e183f6 Merge pull request #18383 from dreis2211
* pr/18383:
  Mention Java 13 in system requirements docs

Closes gh-18383
2019-09-28 22:00:33 -07:00
dreis2211
edefbfde42 Mention Java 13 in system requirements docs
See gh-18383
2019-09-28 21:59:50 -07:00
Phillip Webb
228901a5ca Polish 2019-09-28 21:59:20 -07:00
Phillip Webb
68f410b7dc Upgrade to Jackson 2.10.0
Closes gh-17999
2019-09-28 21:56:19 -07:00
Madhura Bhave
39ed15728f Configure oauth2client in Reactive OAuth2 client auto-config
Closes gh-18385
2019-09-27 11:42:43 -07:00
Stephane Nicoll
15eeedb59a Merge branch '2.1.x'
Closes gh-18380
2019-09-27 17:00:23 +02:00
Stephane Nicoll
b97a1d8f04 Merge pull request #18347 from izeye
* pr/18347:
  Polish

Closes gh-18347
2019-09-27 16:58:58 +02:00
Johnny Lim
7319908b40 Polish
See gh-18347
2019-09-27 16:57:09 +02:00
Stephane Nicoll
1fd814777d Merge pull request #18371 from dreis2211
* pr/18371:
  Add missing appendices to PDF reference documentation

Closes gh-18371
2019-09-27 16:41:10 +02:00
dreis2211
14d7777138 Add missing appendices to PDF reference documentation
See gh-18371
2019-09-27 16:37:38 +02:00
Stephane Nicoll
c605419f19 Merge branch '2.1.x'
Closes gh-18379
2019-09-27 16:34:59 +02:00
Stephane Nicoll
4001809a04 Merge pull request #18372 from rweisleder
* pr/18372:
  Fix typo in ApplicationContextAssert

Closes gh-18372
2019-09-27 16:34:47 +02:00
Roland Weisleder
92ae7b21a1 Fix typo in ApplicationContextAssert
See gh-18372
2019-09-27 16:32:32 +02:00
Stephane Nicoll
f78c9574d8 Start building against Spring Session Corn snapshots
See gh-18257
2019-09-27 16:20:50 +02:00
Phillip Webb
8d9e447965 Don't publish spring-boot-docs jar files
Closes gh-15809
2019-09-26 21:35:15 -07:00
Phillip Webb
8db598b396 Merge pull request #16615 from tkvangorder
* pr/16615:
  Polish 'Support programmatic lazy-int exclusion'
  Support programmatic lazy-int exclusion

Closes gh-16615
2019-09-26 21:27:07 -07:00
Phillip Webb
3ffc5f2a30 Polish 'Support programmatic lazy-int exclusion'
See gh-16615
2019-09-26 21:24:51 -07:00
Tyler Van Gorder
0f26f4d6e2 Support programmatic lazy-int exclusion
Allow the `LazyInitializationBeanFactoryPostProcessor` to skip setting
lazy-init based on a programmatic callback. This feature allows
downstream projects to deal with edge-cases in which it is not easy to
support lazy-loading (such as in DSLs that dynamically create additional
beans).

See gh-16615
2019-09-26 21:22:36 -07:00
Phillip Webb
78996b126b Merge pull request #18342 from Scott-YuYan
* pr/18342:
  Polish "Simplify code"
  Simplify code

Closes gh-18342
2019-09-26 19:12:45 -07:00
Phillip Webb
a13666d696 Polish "Simplify code"
See gh-18342
2019-09-26 19:12:18 -07:00
Yuyan
4d0da4b700 Simplify code
See gh-18342
2019-09-26 19:09:28 -07:00
Phillip Webb
a0957d9bba Merge pull request #18367 from dreis2211
* pr/18367:
  Add micrometer cloudwatch2 managed dependency

Closes gh-18367
2019-09-26 19:05:51 -07:00
dreis2211
4f7f8ff0c7 Add micrometer cloudwatch2 managed dependency
See gh-18367
2019-09-26 19:05:35 -07:00
Phillip Webb
8f9fd97095 Don't reset defaults if source collection is empty
Update `LegacyHealthEndpointCompatibilityConfiguration` to ensure that
the default configuration is only overwritten when the user has
explicitly set new values.

Fixes gh-18354
2019-09-26 18:20:59 -07:00
Phillip Webb
a94ab673a3 Add health endpoint 'show-components' support
Add a `show-components` property under `management.endpoint.health` and
`management.endpoint.health.group.<name>` that can be used to change
when components are displayed.

Prior to this commit it was only possible to set `show-details` which
offered an "all or nothing" approach to the resulting JSON. The new
switch allows component information to be displayed whilst still hiding
potentially sensitive details returned from the actual `HealthIndicator`.

Closes gh-15076
2019-09-26 16:17:28 -07:00
Phillip Webb
69c561a69a Rename health JSON 'details' to 'components' in v3
Update the health endpoint so the nested components are now exposed
under `components` rather than `details` when v3 of the actuator
REST API is being used.

This distinction helps to clarify the difference between composite
health (health composed of other health components) and health
details (technology specific information gathered by the indicator).

Since this is a breaking change for the REST API, it is only returned
for v3 payloads. Requests made accepting only a v2 response will have
JSON provided in the original form.

Closes gh-17929
2019-09-26 16:16:23 -07:00
Phillip Webb
cd1b7c1a9c Test v3 actuator API with loggers endpoint
Update `LoggersEndpointWebIntegrationTests` to ensure that the new
v3 media type can be used.

See gh-17929
2019-09-26 16:16:19 -07:00
Phillip Webb
deb9d67cef Add Actuator ApiVersion support and bump version
Add `ApiVersion` enum that can be injected into actuator endpoints if
they need to support more than one API revision.

Spring MVC, WebFlux and Jersey integrations now detect the API version
based on the HTTP accept header. If the request explicitly accepts a
`application/vnd.spring-boot.actuator.v` media type then the version
is set from the header. If no explicit Spring Boot media type is
accepted then the latest `ApiVersion` is assumed.

A new v3 API revision has also been introduced to allow upcoming health
endpoint format changes. By default all endpoints now consume and
can produce v3, v2 and `application/json` media types.

See gh-17929
2019-09-26 16:16:15 -07:00
Phillip Webb
d83238aaab Merge branch '2.1.x'
Closes gh-18369
2019-09-26 12:14:35 -07:00
Phillip Webb
050460f635 Check factory bean for EntityManager datasource
Update `DataSourceInitializedPublisher` to fallback to the
`LocalContainerEntityManagerFactoryBean` if the
`javax.persistence.nonJtaDataSource` property is not defined.

As of Hibernate 4.3 the property is no longer set if the `EntityManager`
is created from a `PersistenceUnitInfo` instance rather than actual
properties.

Although this is being addressed in Hibernate issue HHH-13432, it's
not strictly a requirement of the JPA spec that the property is set.

Fixes gh-17061
2019-09-26 12:14:13 -07:00
Stephane Nicoll
4e0de90e5a Merge branch '2.1.x' 2019-09-26 16:09:04 +02:00
Stephane Nicoll
9c09c7d5ca Prohibit upgrade to Netty 4.1.40+
See https://github.com/reactor/reactor-netty/issues/844
2019-09-26 16:07:34 +02:00
Brian Clozel
b15e26662a Upgrade to Spring Doc Resources 0.1.3
Closes gh-18293
2019-09-26 15:04:57 +02:00
Stephane Nicoll
8c029959e6 Upgrade Java 13 version in CI image
Closes gh-18357
2019-09-26 07:35:14 +02:00
Madhura Bhave
8088e79f48 Merge branch '2.1.x'
Closes gh-18355
2019-09-25 09:45:23 -07:00
Madhura Bhave
401a6b586e Remove war packaging from Jersey sample
This also removes the need for the tomcat starter to be in provided
scope.

Closes gh-18346
2019-09-25 09:28:26 -07:00
Andy Wilkinson
7548da1b40 Merge pull request #18349 from dreis2211
* gh-18349:
  Fix deprecation warnings caused by BodyInserters.fromObject

Closes gh-18349
2019-09-25 13:57:33 +01:00
dreis2211
4262aab446 Fix deprecation warnings caused by BodyInserters.fromObject
See gh-18349
2019-09-25 13:57:17 +01:00
Andy Wilkinson
eb00ba7470 Merge pull request #18351 from dreis2211
* gh-18351:
  Fix checkstyle errors in SampleReactiveOAuth2ClientApplicationTests

Closes gh-18351
2019-09-25 13:56:13 +01:00
dreis2211
de6c38398e Fix checkstyle errors in SampleReactiveOAuth2ClientApplicationTests
See gh-18351
2019-09-25 13:55:34 +01:00
Stephane Nicoll
48bf9a58c6 Upgrade to Reactor Dysprosium-RELEASE
Closes gh-18276
2019-09-25 09:01:03 +02:00
Stephane Nicoll
ea5ca500ac Merge branch '2.1.x' 2019-09-25 09:00:42 +02:00
Stephane Nicoll
56623bd57b Upgrade to Reactor Californium-SR12
Closes gh-18348
2019-09-25 09:00:13 +02:00
Phillip Webb
f1ec810caf Polish 2019-09-24 19:53:50 -07:00