Commit Graph

11862 Commits

Author SHA1 Message Date
Andy Wilkinson
d1ea4f8a8a Start building against Spring REST Docs 1.2.1 snapshots
See gh-9071
2017-05-03 10:12:51 +01:00
Andy Wilkinson
4a00f90545 Stop throwing checked exception from @PostConstruct in ResourceServerProperties
Closes gh-8916
2017-05-03 10:12:51 +01:00
Stephane Nicoll
b1bb36db2b Merge branch '1.5.x' 2017-05-03 11:06:51 +02:00
Stephane Nicoll
7b1fc01733 Fix checkstyle violations 2017-05-03 10:19:00 +02:00
Stephane Nicoll
41712c7061 Merge branch '1.5.x' 2017-05-03 09:18:40 +02:00
Stephane Nicoll
b4d55a2223 Merge pull request #9007 from Dichotomia:patch-6
* pr/9007:
  Add dependency section for jersey multipart
2017-05-03 09:18:28 +02:00
Quentin Caillard
45e0912ecd Add dependency section for jersey multipart
Closes gh-9007
2017-05-03 09:18:09 +02:00
Stephane Nicoll
76c76549b6 Merge branch '1.5.x' 2017-05-03 09:15:59 +02:00
Stephane Nicoll
063d301fd3 Make LayoutType public
Closes gh-9067
2017-05-03 09:15:34 +02:00
Stephane Nicoll
6a386c34d5 Merge branch '1.5.x' 2017-05-03 09:11:55 +02:00
Stephane Nicoll
54a8dc5b33 Merge branch '1.4.x' into 1.5.x 2017-05-03 09:11:37 +02:00
Stephane Nicoll
625a7668c9 Merge pull request #9065 from dsyer:cachedocs
* pr/9065:
  Polish "Clarify and re-organize docs on caching"
  Clarify and re-organize docs on caching
2017-05-03 09:11:05 +02:00
Stephane Nicoll
e2b209e409 Polish "Clarify and re-organize docs on caching"
Closes gh-9065
2017-05-03 09:10:47 +02:00
Dave Syer
11feb75752 Clarify and re-organize docs on caching
See gh-9065
2017-05-03 09:01:45 +02:00
Phillip Webb
cd27737e42 Polish configuration properties and binder
Fix a few issues and try a few more things to improve performance.

See gh-9000
2017-05-02 22:06:08 -07:00
Phillip Webb
97dc2165b7 Polish 2017-05-02 21:56:24 -07:00
Phillip Webb
8133b7f245 Merge branch '1.5.x' 2017-05-02 21:43:22 -07:00
Phillip Webb
4d4d03ab2c Merge branch '1.4.x' into 1.5.x 2017-05-02 21:33:33 -07:00
Phillip Webb
4a95b2f174 Polish 2017-05-02 20:39:45 -07:00
Madhura Bhave
c04f28d9e5 Validate ResourceServerProperties in PostConstruct
Closes gh-8916
2017-05-02 17:25:06 -07:00
Madhura Bhave
9ef3a448e6 Restore BindFailureAnalyzer support
Closes gh-9026
2017-05-02 13:46:52 -07:00
Stephane Nicoll
291b0c5fa7 Merge pull request #5311 from mp911de:issue/sd-redis-lettuce-driver-autoconfiguration
* pr/5311:
  Add missing tests
  Polish "Add Lettuce Redis driver autoconfiguration"
  Add Lettuce Redis driver autoconfiguration
2017-05-02 16:05:56 +02:00
Stephane Nicoll
47783e258a Add missing tests 2017-05-02 15:57:51 +02:00
Stephane Nicoll
e7efa8f133 Polish "Add Lettuce Redis driver autoconfiguration"
Closes gh-5311
2017-05-02 15:40:40 +02:00
Mark Paluch
4563da9ac7 Add Lettuce Redis driver autoconfiguration
Introduce an alternative autoconfiguration if the lettuce Redis driver is
available. Add Lettuce-specific configuration property options
"spring.redis.lettuce.shutdown-timeout" to control the shutdown timeout
of the lettuce driver. Add documentation for the properties, the
supported drivers, and how to switch between drivers.

Split client-specific properties from spring.redis.pool to
spring.redis.jedis.pool and introduce spring.redis.lettuce namespace.
Deprecate spring.redis.pool property.

See gh-5311
2017-05-02 13:33:34 +02:00
Stephane Nicoll
64dae5ec3a Merge branch '1.5.x' 2017-05-02 13:26:04 +02:00
Stephane Nicoll
035e27b1d1 Merge branch '1.4.x' into 1.5.x 2017-05-02 13:21:03 +02:00
Stephane Nicoll
8e5bf4b22a Polish CachePublicMetrics
CachePublicMetrics wasn't explicitly tested and was still using field
injection. This commit improves the situation in preparation of the fix
for gh-8984
2017-05-02 13:15:31 +02:00
Stephane Nicoll
43fb99aafa Merge branch '1.5.x' 2017-05-02 12:14:00 +02:00
Stephane Nicoll
652a5e7baa Merge branch '1.4.x' into 1.5.x 2017-05-02 12:13:44 +02:00
Stephane Nicoll
f060922350 Fix cache example in the doc
Closes gh-8983
2017-05-02 11:58:50 +02:00
Andy Wilkinson
e0d5c447a8 Upgrade to Rxjava2 2.1.0
Closes gh-9062
2017-05-02 09:38:37 +01:00
Andy Wilkinson
7ed8737382 Upgrade to Rxjava 1.2.10
Closes gh-9061
2017-05-02 09:38:36 +01:00
Eddú Meléndez
4c96e95ad9 Simplify Netty dependency management by importing its BOM
See gh-9021
Closes gh-9050
2017-05-02 09:16:31 +02:00
Phillip Webb
00c67f1962 Support SpringApplicationBuilder with bound sources
Update `SpringApplicationBuilder` so that the `sources(...)` method
updates the primary sources. Prior to this commit, the fix for #8910
had the unfortunate side effect of stopping the
`SpringApplicationBuilder` from being used with
`spring.application.main` properties.

Fixes gh-9053
2017-05-02 00:14:35 -07:00
Phillip Webb
5ae1798ec5 Don't rely on ConfigurationPropertyName exceptions
Update `ConfigurationPropertySourcesPropertySource` to no longer use
`try/catch` when checking for valid names. A new `isValid` method has
been introduced to `ConfigurationPropertyName` which is offers better
performance.

Fixes gh-9058
2017-05-01 23:07:28 -07:00
Phillip Webb
8b1625b41d Short circuit binding if possible
Update the `Binder` to short circuit potentially expensive bean binding
if there are no known child properties. The shortcut can only be applied
when all used `ConfigurationPropertySources` return a non empty
`containsDescendantOf` result. This should be the case for most
Spring Boot applications, the exception being any apps that are running
in a security restricted environment.

Fixes gh-9023
2017-05-01 23:07:28 -07:00
Phillip Webb
c22a21e386 Add 'contains descendant of' support
Update `ConfigurationPropertySource` with a `containsDescendantOf`
method that can be used to tell if a source contains any descendants
of the given name.

The result is Optional so that sources that cannot determine a result
may return `empty()`.

The existing `IterableConfigurationPropertiesSource` has a default
implementation that works by iterating the contained values. Most other
sources return `empty()` with the exception of the adapted
`RandomProperySource` with will return true for `random.*` names.

See gh-9023
2017-05-01 23:07:21 -07:00
Phillip Webb
35a51e45d8 Ignore nested with NoUnboundElementsBindHandler
Update `NoUnboundElementsBindHandler` to also support ignoring
nested properties. This change is required to allow the
`NoUnboundElementsBindHandler` to be used alongside the
`IgnoreNestedPropertiesBindHandler`.

See gh-9000
2017-05-01 22:47:55 -07:00
Phillip Webb
3153117429 Fix ConfigurationPropertyName ancestor bug
Fix an issue with `ConfigurationPropertyName` where the `isAncesorOf`
method would not work with `ConfigurationPropertyName.EMPTY`

See gh-9000
2017-05-01 22:46:45 -07:00
Phillip Webb
10b8eb3109 Split ConfigurationPropertySource for iteration
Create separate `IterableConfigurationPropertySource` and
`ConfigurationPropertySource` interfaces so that it's possible to
work out if a source can truly iterate the values that it contains.

Prior to this commit there was only a single
`ConfigurationPropertySource` interface, which returned an empty
Iterator when values could not be iterated. This design made it
impossible to tell the difference between a source that was empty, and
a source that could not be iterated.

The `ConfigurationPropertySources` class has been updated to adapt
non-enumerable and enumerable Spring PropertySources to the correct
`ConfigurationPropertySource` interface. It also deals with the edge
case of the `SystemPropertySource` running in a security restricted
environment.

Fixes gh-9057
2017-05-01 22:39:31 -07:00
Phillip Webb
53fd1f7f2e Fix cache sizing bug
Fix a cache size bug in `DefaultPropertyMapper` which caused the
cache to be purged immediately.

See gh-9000
2017-05-01 22:33:27 -07:00
Phillip Webb
6cdb02050d Reduce InMemoryAuditEventRepository default capacity
Lower the default capacity used in `InMemoryAuditEventRepository` from
4000 to 1000. This should help reduce memory consumption.

Fixes gh-9056
2017-05-01 22:31:39 -07:00
Phillip Webb
77d427af6c Fix occasional Jetty test failures
Update `DefaultServletWebServerFactoryCustomizerTests` so that the Jetty
access log tests use the default timezone. Prior to this commit it was
possible that running the tests outside of UTC could result in Jetty
throwing a "negative delay" IllegalArgumentException.

See gh-8819
2017-05-01 21:50:54 -07:00
Stephane Nicoll
da0d7b5558 Merge pull request #9042 from michael-simons:fix-source-links
* pr/9042:
  Fix several broken links to sources
2017-04-29 21:22:36 +02:00
Michael J. Simons
18230d7f23 Fix several broken links to sources
Closes gh-9042
2017-04-29 21:22:16 +02:00
Phillip Webb
d6099bafa3 Reduce ConfigurationPropertyName garbage
Update the `ConfigurationPropertyNameBuilder` to reduce the number of
objects created.

Fixes gh-9022
2017-04-28 14:25:25 -07:00
Phillip Webb
19f166a56f Delete remaining old bind classes
Remove the last deprecated class from `org.springframework.boot.bind`

See gh-9000
2017-04-28 14:24:15 -07:00
Phillip Webb
3f71b8453f Migrate missed tests to new Binder
Migrate a few tests that were missed to use the new `Binder`.

See gh-9000
2017-04-28 14:23:20 -07:00
Phillip Webb
528d776d2b Polish 2017-04-28 14:21:34 -07:00