Commit Graph

21208 Commits

Author SHA1 Message Date
Joe Kutner
c5695c8f78 Fix spring.quartz.jdbc.initialize-schema value
Use enum value from DataSourceInitializationMode instead of Boolean.

Closes gh-11433
2017-12-27 16:15:25 +01:00
Stephane Nicoll
2430de5fe9 Merge pull request #11418 from izeye:polish-21071224
* pr/11418:
  Polish
2017-12-26 09:53:43 +01:00
Johnny Lim
3c5ccb1166 Polish
Closes gh-11418
2017-12-26 09:47:10 +01:00
Stephane Nicoll
644359920b Merge pull request #11396 from izeye:string-utils
* pr/11396:
  Remove org.flywaydb.core.internal.util.StringUtils import
2017-12-24 12:20:32 +01:00
Johnny Lim
b35348b41d Remove org.flywaydb.core.internal.util.StringUtils import
Closes  gh-11396
2017-12-24 12:20:03 +01:00
Stephane Nicoll
a8f5e1a361 Merge branch '1.5.x' 2017-12-24 12:19:40 +01:00
Stephane Nicoll
07bb33d8ed Prevent the accidental use of Flyway's StringUtils
See gh-11396
2017-12-24 12:16:14 +01:00
Stephane Nicoll
8f793eaf33 Merge pull request #11362 from izeye:assert-state-supplier
* pr/11362:
  Use Supplier version of Assert.state()
2017-12-23 14:32:30 +01:00
Johnny Lim
e32287164b Use Supplier version of Assert.state()
Closes gh-11362
2017-12-23 14:31:38 +01:00
Stephane Nicoll
db2de63106 Merge pull request #11400 from izeye:rename-auto-configuration
* pr/11400:
  Rename CloudFoundryHealthWebEndpointManagementContextConfiguration
2017-12-23 14:23:42 +01:00
Johnny Lim
3a276d2a87 Rename CloudFoundryHealthWebEndpointManagementContextConfiguration
Closes gh-11400
2017-12-23 14:23:24 +01:00
Stephane Nicoll
691183a66e Merge pull request #11373 from izeye:contains
* pr/11373:
  Replace contains() with indexOf()
2017-12-23 14:00:47 +01:00
Johnny Lim
4cc598ac5e Replace contains() with indexOf()
Closes gh-11373
2017-12-23 14:00:27 +01:00
Stephane Nicoll
544c40d46d Upgrade to Spring Kafka 2.1.0.RELEASE
Closes gh-11415
2017-12-23 13:44:49 +01:00
Stephane Nicoll
9bb5bb41d5 Merge pull request #11364 from izeye:fix-package-name
* pr/11364:
  Fix package name for InfluxDB
2017-12-23 13:29:44 +01:00
Johnny Lim
240aaadd83 Fix package name for InfluxDB
Closes gh-11364
2017-12-23 13:27:58 +01:00
Stephane Nicoll
1867ba6362 Merge pull request #11372 from izeye:polish-20171218
* pr/11372:
  Polish
2017-12-23 13:14:20 +01:00
Johnny Lim
e4f0ad2165 Polish
Closes gh-11372
2017-12-23 13:11:53 +01:00
Stephane Nicoll
873d88e1eb Merge pull request #11368 from dreis2211:fix-javadoc
* pr/11368:
  Fix JsonbHttpMessageConvertersConfiguration javadoc
2017-12-23 12:55:06 +01:00
dreis2211
a434e5cc5f Fix JsonbHttpMessageConvertersConfiguration javadoc
Closes gh-11368
2017-12-23 12:54:50 +01:00
Stephane Nicoll
48f4508aef Merge pull request #11365 from eddumelendez:fix_influxdb_health_property
* pr/11365:
  Fix property key to enable influxdb health endpoint
2017-12-23 12:53:27 +01:00
Eddú Meléndez
cc9b2a9786 Fix property key to enable influxdb health endpoint
Closes gh-11365
2017-12-23 12:51:24 +01:00
Phillip Webb
ad1c8d773f Start properties validator in background thread
Change the default JSR-303 validator used by the configuration
properties binder so that it's initialized in a background thread.
This change allows the context to carry on loading additional beans
whilst the validator is initializing.

Fixes gh-11412
2017-12-22 21:16:47 -08:00
Phillip Webb
5f10c82284 Change property mapper to use array returns
Update the `PropertyMapper` interface to return arrays rather than
Lists. Since implementations are package-private it's possible for us
to control how they are used and it helps to save a little memory.

Fixes gh-11411
2017-12-22 20:57:38 -08:00
Phillip Webb
2efa21c570 Make hot methods in-line friendly
Refactor a few hot methods so that they are more likely to be in-lined
by the JIT.

Fixes gh-11409
2017-12-22 20:55:47 -08:00
Phillip Webb
e141f77801 Share BinderConversionService with a static
Use a single shared static `BinderConversionService` instance for all
created binders to save memory and improve performance.

Fixes gh-11352
2017-12-22 20:54:00 -08:00
Phillip Webb
6cb331ed2c Cache endpoint enabled-by-default result
Update `OnEnabledEndpointCondition` so that the result of
`management.endpoints.enabled-by-default` is cached between calls.

Fixes gh-11407
2017-12-22 20:52:07 -08:00
Phillip Webb
7f0048a899 Use fast exceptions when enumerating resources
Update the `LaunchedURLClassLoader` used for fat jar support so that
each iteration on a `findResources` result also allows for fast
exceptions.

Fixes gh-11406
2017-12-22 20:50:07 -08:00
Phillip Webb
aa66d5dfb8 Reduce garbage created when loading fat jars
Refactor fat jar loader classes so that less `char[]` instances are
created. This is primarily achieved by adding a new `StringSequence`
class that can chop up Strings without needing to copy the underlying
array. Since Java 8, calls to `String.subString(...)` always copy the
underlying char array. For many of the operations that we need, this
is unnecessary.

Fixes gh-11405
2017-12-22 20:49:17 -08:00
Phillip Webb
c024313141 Drop environment variable "__" list support
Remove support for the `__` environment variable list shortcut in order
to reduce complexity. The shortcut was developed before the new `Binder`
code was fully formed and isn't really necessary now since comma-lists
can be converted automatically.

Fixes gh-11410
2017-12-22 12:15:12 -08:00
Phillip Webb
1ea921bfdd Migrate to OAuth2Client to use PropertyMapper
See gh-9018
2017-12-22 09:55:21 -08:00
Phillip Webb
ba86b68484 Polish 2017-12-22 09:48:30 -08:00
Phillip Webb
6eabe8235c Add optional javax.money dependency
Add an optional dependency to `javax.money` to Eclipse errors in
`WebConversionService`.

See gh-5523
See gh-11402
2017-12-22 09:48:29 -08:00
Stephane Nicoll
7d60d023c7 Merge pull request #11394 from dreis2211:fix-behavior-spelling
* pr/11394:
  Align 'behavior' spelling to style guide
2017-12-22 18:15:46 +01:00
dreis2211
00d12c5b2d Align 'behavior' spelling to style guide
Closes gh-11394
2017-12-22 18:15:19 +01:00
Stephane Nicoll
7c0ed8981f Merge pull request #11388 from dreis2211:fix-duplicate-typo
* pr/11388:
  Fix typo
2017-12-22 18:12:23 +01:00
Christoph Dreis
1a7fd6c359 Fix typo
Closes gh-11388
2017-12-22 18:12:06 +01:00
Brian Clozel
2fa0539e7f Support date conversion format for java.time types
Prior to this change, the Spring MVC auto-configuration would add a new
formatter to convert `java.util.Date` to/from `String` using the
configured configuration property `spring.mvc.date-format`.

This commit adds a new `WebConversionService` class that registers
date formatters with a custom date format, or register the default ones
if no custom configuration is provided.
This avoids duplicating equivalent formatters in the registry.

With this change, date types from `java.util`, `org.joda.time` and
`java.time` are now all supported.

This commit also replicates this feature for WebFlux applications by
adding a new `spring.webflux.date-format` configuration property.

Closes gh-5523
Closes gh-11402
2017-12-22 16:07:33 +01:00
Madhura Bhave
ec26488ff1 Allow encoding default password in reactive user details
See gh-10963
2017-12-20 10:29:20 -08:00
Madhura Bhave
1b93f84912 Allow encoded password for default user
If raw password is provided, add {noop} prefix.
If prefix is present or PasswordEncoder bean is provided,
use the password as is.

Closes gh-10963
2017-12-18 14:34:02 -08:00
Phillip Webb
5e9cfea5a8 Migrate to auto-configurations to PropertyMapper
Update auto-configuration classes that have extensive property mapping
code to make use of the new `PropertyMapper` utility.

Fixes gh-9018
2017-12-15 18:32:07 -08:00
Phillip Webb
241a7086c0 Add PropertyMapper utility class
Add a utility class that can help when mapping values from
`@ConfigurationProperties` to a third-party class.

See gh-9018
2017-12-15 18:32:06 -08:00
Phillip Webb
befdbaaaa9 Polish 2017-12-15 14:57:25 -08:00
Stephane Nicoll
b7435016fb Improve Couchbase health indicator
This commit improve the couchbase health indicator to list the available
nodes. Doing so improves the reliability of the indicator as accessing
the bucket forces a remote call and better detect the cases where the
broker is down.

Closes gh-7369
2017-12-15 18:58:53 +01:00
Stephane Nicoll
2ed162a0be Fix outdated references to server.context-path
Closes gh-11358
2017-12-15 10:24:14 +01:00
Stephane Nicoll
7566a197b0 Fix type for spring.data.cassandra.contact-points
Closes gh-11354
2017-12-15 10:13:40 +01:00
Madhura Bhave
bf3aa62a58 Merge branch '1.5.x' 2017-12-14 13:45:20 -08:00
Madhura Bhave
98f577e62c Remove duplicate ID values from howto doc 2017-12-14 13:42:46 -08:00
Madhura Bhave
c94f0822e5 Fix bean names in tests
See gh-11224
2017-12-14 12:30:13 -08:00
Stephane Nicoll
27922ae325 Polish 2017-12-14 17:06:46 +01:00