Commit Graph

26227 Commits

Author SHA1 Message Date
Phillip Webb
7e10d86ed3 Polish 2018-02-22 21:37:31 -08:00
Phillip Webb
3dea6fc645 Fix bind TypeConverter delegation with collections
Update `BindConverter` so that delegation to `SimpleTypeConverter` also
works with Collections and Arrays.

Prior to this commit, conversion that relied on a `PropertyEditor` would
only work for simple types. For example, "String -> Class<?>" would use
the `ClassEditor` but "String -> List<Class<?>>" would fail.

The `BindConverter` now uses a minimal `ConversionService` as an adapter
to the `SimpleTypeConverter`. This allows us to use the same delimited
string conversion logic as the `ApplicationConverter`.

Fixes gh-12166
2018-02-22 21:26:36 -08:00
Phillip Webb
4b9c3c137e Polish Collection.toArray
Consistently use `StringUtils.toStringArray`, `ClassUtils.toClassArray`
or zero length when converting collections to arrays.

Fixes gh-12160
2018-02-22 21:11:30 -08:00
Johnny Lim
680287635c Rename TestRestTemplateTestContextCustomizer*
Closes gh-12182
2018-02-22 20:26:14 -08:00
Phillip Webb
cd5266ac03 Polish 2018-02-22 20:25:28 -08:00
Andy Wilkinson
80ac4f85c9 Merge pull request #12172 from Raja Kolli
* gh-12172:
  Upgrade to JUnit Platform 1.1.0
2018-02-22 18:48:38 +00:00
Raja Kolli
8f2eea4dfd Upgrade to JUnit Platform 1.1.0
Closes gh-12172
2018-02-22 18:47:52 +00:00
Brian Clozel
dcf61abe30 Fix Reactive Server auto-configuration ordering
This commit ensures that Tomcat is the first reactive server configured
if the Tomcat dependency is on classpath.

Spring Boot chose Reactor Netty as the default for the reactive web
starter, but the Reactor Netty dependency can be used also for its HTTP
client. In case developers are adding Tomcat, Undertow or Jetty on their
classpath, we must configure those and consider Reactor Netty for the
client only.

Fixes gh-12176
2018-02-22 18:04:53 +01:00
Stephane Nicoll
3fddfee65c Fix default value of endpoint's cache ttl
Closes gh-12173
2018-02-22 13:35:50 +01:00
Johnny Lim
2fe86da95b Use isTrue() and isFalse() for AssertJ
Closes gh-12170
2018-02-22 09:55:40 +01:00
Stephane Nicoll
865775e955 Fix statsd example
Closes gh-12162
2018-02-22 09:00:13 +01:00
Phillip Webb
5917a58bf1 Add Automatic-Module-Name to manifest file
Update build to add `Automatic-Module-Name` entry to the manifest file.
Also refined a few of the other entries that appear.

Fixes gh-11994
2018-02-21 16:03:13 -08:00
Johnny Lim
50c07d0772 Polish
Closes gh-12156
2018-02-21 17:46:57 +01:00
Stephane Nicoll
75505c78f5 Polish 2018-02-21 17:41:19 +01:00
Andy Wilkinson
e7176c63f5 Stop DataSource initialization from preventing Hikari instrumentation
Closes gh-12129
2018-02-21 10:32:41 +00:00
Madhura Bhave
33be78a91e Add additional profile negation tests
Closes gh-8011
2018-02-21 01:57:03 -08:00
Phillip Webb
4bde6b80ee Refactor YAML profile to deal with "!" profiles
Drop `SpringProfileDocumentMatcher` and replace it with two new
implementations that restrict when YAML documents are loaded. YAML
sections are now restricted both on the specific profile that is being
loaded, and the profiles that are currently accepted.

The `PropertySourceLoader` interface has been refined to include a
predicate that determines when a profile is accepted. The
`ConfigFileApplicationListener` simply delegates the predicate logic to
the `Environment`.

Fixes gh-8011
2018-02-21 01:57:03 -08:00
Stephane Nicoll
b03fd99209 Polish 2018-02-21 10:20:32 +01:00
Stephane Nicoll
d7e000da53 Add missing JMX section 2018-02-21 10:19:41 +01:00
Johnny Lim
1bd94b3499 Remove an obsolete warning in doc
Closes gh-12150
2018-02-21 09:27:14 +01:00
Stephane Nicoll
e7db69be7a Polish
See gh-11869
2018-02-21 07:39:40 +01:00
Phillip Webb
3076a5523a Fix checkstyle violation 2018-02-20 22:37:37 -08:00
Phillip Webb
8c24988faa Fix checkstyle violation 2018-02-20 22:02:02 -08:00
Phillip Webb
349987d9be Switch show details default to ShowDetails.NEVER
Closes gh-11869
2018-02-20 16:43:11 -08:00
Phillip Webb
46021928ba Rework common server customization
Update the configurable embedded web server factory interfaces to
extend `ConfigurableWebServerFactory` so that the can be used in a
`WebServerFactoryCustomizer`.

Extract server specific customization to their own auto-configuration
and align reactive/servlet server auto-configuration.

Closes gh-8573
2018-02-20 16:27:15 -08:00
Phillip Webb
aafa1e9615 Rename MetricsIntegrationAutoConfiguration
Rename `MetricsIntegrationAutoConfiguration` to
`IntegrationMetricsAutoConfiguration`.

Closes gh-12147
2018-02-20 16:25:51 -08:00
Phillip Webb
0925a0957e Polish 2018-02-20 16:24:35 -08:00
Phillip Webb
8f5f0bda50 Upgrade to Spring Session Apple-SR1
Closes gh-12092
2018-02-20 16:08:13 -08:00
Phillip Webb
fe1f0cf90e Upgrade to Micrometer 1.0.0
Closes gh-11877
2018-02-20 16:02:46 -08:00
Phillip Webb
3ec5f70c52 Upgrade to Spring Integration 5.0.2.RELEASE
Closes gh-12130
2018-02-20 15:55:40 -08:00
Phillip Webb
05faac2b09 Polish 2018-02-20 15:53:25 -08:00
Phillip Webb
cdb5677375 Polish Binder constructor
Reinstate constructor signature used by Spring Cloud and improve
javadoc.

Closes gh-12095
2018-02-20 15:36:43 -08:00
Andy Wilkinson
b5e2c5ec1c Polish 2018-02-20 19:58:39 +00:00
Stephane Nicoll
a7cccac0d0 Remove deprecation note for property that was renamed in 2.0 2018-02-20 18:57:25 +01:00
Stephane Nicoll
ce01a9145b Polish 2018-02-20 18:45:36 +01:00
Andy Wilkinson
8f699cd6f6 Use RoleVoter for role checks in ReactiveSecurityContext
See gh-11869
2018-02-20 17:11:57 +00:00
Andy Wilkinson
ae45b6730b Apply ROLE_ prefix when needed in ReactiveSecurityContext isUserInRole
See gh-11869
2018-02-20 16:38:16 +00:00
Stephane Nicoll
20f104766b Add missing default values for enums 2018-02-20 17:33:32 +01:00
Andy Wilkinson
daa280faff Drop AuthorityReactiveAuthorizationManager and avoid need to block
See gh-11869
2018-02-20 16:29:28 +00:00
Stephane Nicoll
45476961c1 Polish
See gh-12129
2018-02-20 17:02:03 +01:00
Andy Wilkinson
5e61b646fa Upgrade to Neo4j Ogm 3.1.0
Closes gh-12145
2018-02-20 15:52:56 +00:00
Andy Wilkinson
024a42a830 Upgrade to Mariadb 2.2.2
Closes gh-12144
2018-02-20 15:52:56 +00:00
Andy Wilkinson
feb82b49f2 Upgrade to Johnzon Jsonb 1.1.6
Closes gh-12143
2018-02-20 15:52:56 +00:00
Andy Wilkinson
ac69ec1f1b Upgrade to Junit Jupiter 5.1.0
Closes gh-12142
2018-02-20 15:52:56 +00:00
Stephane Nicoll
0492d53117 Polish 2018-02-20 16:52:15 +01:00
Andy Wilkinson
e2315658e6 Merge branch '1.5.x' 2018-02-20 15:47:43 +00:00
Stephane Nicoll
6f59dd6b17 Polish "Update documentation to reference webjars-locator-core"
Closes gh-12135
2018-02-20 16:37:34 +01:00
Nikola Kološnjaji
4da4a4d385 Update documentation to reference webjars-locator-core
See gh-12135
2018-02-20 16:33:19 +01:00
Stephane Nicoll
0f75a9a9fe Rework Hikari metrics registration
This commits move the Hikari metrics registration to a BeanPostProcessor
as the Hikari datasource cannot be modified once its configuration has
been sealed (usually happens when `getConnection` is invoked on the
pool).

Closes gh-12129
2018-02-20 16:25:51 +01:00
Stephane Nicoll
1b8f0d06a7 Test that custom ProtocolResolver is invoked
See gh-11659
2018-02-20 14:45:51 +01:00