149 Commits

Author SHA1 Message Date
Andy Wilkinson
ecdbc52fc5 Make log4j-core available to Elasticsearch tests
Elasticsearch server requires log4j-core but we don't want the entire
module to have a test dependency on log4j-core as it already uses
Logback. This commit uses the modified class path runner to make
log4j-core available specifically to the Elasticsearch-related tests.

See gh-11166
2017-11-27 13:36:06 +00:00
Stephane Nicoll
89054d32fa Polish "Fix CouchbaseReactiveRepositoriesAutoConfigurationTests"
Closes gh-11151
2017-11-27 10:59:21 +01:00
Eddú Meléndez
ef3d44f680 Fix CouchbaseReactiveRepositoriesAutoConfigurationTests
See gh-11151
2017-11-27 10:56:35 +01:00
Stephane Nicoll
9543327406 Polish "Use BeanIds.SPRING_SECURITY_FILTER_CHAIN"
Closes gh-11162
2017-11-27 10:32:28 +01:00
Johnny Lim
70d92037bd Use BeanIds.SPRING_SECURITY_FILTER_CHAIN
See gh-11162
2017-11-27 10:31:32 +01:00
Johnny Lim
d9828a0aaa Polish
See gh-11143
2017-11-27 10:14:18 +01:00
Johnny Lim
dea95b2b67 Make CouchbaseReactiveRepositoriesAutoConfigureRegistrar package-private
Closes gh-11142
2017-11-26 11:30:17 +01:00
Johnny Lim
7d94695936 Harmonize CouchbaseReactiveRepositoriesAutoConfiguration conditions
Closes gh-11138
2017-11-24 16:51:29 +01:00
Andy Wilkinson
16b090c9bc Polish 2017-11-24 15:46:19 +00:00
Andy Wilkinson
7674841946 Log condition evaluation delta upon DevTools restart 2017-11-24 14:49:53 +00:00
Andy Wilkinson
b3c5a050ad Polish message for matching beans produced by OnBeanCondition 2017-11-24 12:01:20 +00:00
Andy Wilkinson
51b56782a3 Apply customizers to build when created embedded Mongo client
Closes gh-11132
2017-11-24 10:59:29 +00:00
Stephane Nicoll
5ebed451e0 Remove dead code 2017-11-23 17:55:58 +01:00
Johnny Lim
01a48412d2 Polish
Closes gh-11126
2017-11-23 16:00:55 +00:00
Stephane Nicoll
0a5f064d39 Improve error metadata for Autoconfigure module 2017-11-23 16:11:48 +01:00
Stephane Nicoll
877ed041e7 Polish 2017-11-23 13:38:11 +01:00
Stephane Nicoll
13ccf45008 Polish
See gh-10884
2017-11-23 13:28:44 +01:00
Andy Wilkinson
f12de333f5 Merge branch '1.5.x' 2017-11-23 11:46:42 +00:00
Andy Wilkinson
69fb433eb7 Merge branch '1.5.x' 2017-11-23 11:35:12 +00:00
Stephane Nicoll
59df2909b8 Format 2017-11-23 10:16:32 +01:00
Stephane Nicoll
cc2d882d08 Polish
See gh-11090
2017-11-23 10:14:24 +01:00
Phillip Webb
93ae71cf93 Switch Jackson write-dates-as-timestamps default
Update `JacksonAutoConfiguration` so that `write-dates-as-timestamps`
now defaults to `false`.

Fixes gh-11079
2017-11-22 22:02:17 -08:00
Phillip Webb
d99625fa78 Rename properties that have - in their prefix
Rename `reactive-repositories` to `reactiverepositories` and replace
`spring.resources.cache-control` with `spring.resources.cache.control`.

Fixes gh-11090
2017-11-22 16:48:21 -08:00
Andy Wilkinson
4bf1640198 Allow beans to be used as Hibernate naming strategies
Previously, custom Hibernate naming strategies could only be
configured via properties. This allowed a fully-qualified classname to
be specified, but did not allow a naming strategy instance to be used.

This commit updates HibernateJpaConfiguration to use
ImplicitNamingStrategy and PhysicalNamingStrategy beans if they
exist. If both a bean exists and the equivalent property has been set,
the bean wins.
2017-11-22 17:29:13 +00:00
Johnny Lim
858d325577 Fix getter and setter for sMaxAge 2017-11-22 23:21:18 +09:00
Andy Wilkinson
2b1d1cd317 Polish "Auto-configure templated welcome page"
Closes gh-10545
2017-11-21 15:21:57 +00:00
Bruce Brouwer
cc855f4462 Auto-configure templated welcome page
See gh-10545
2017-11-21 15:21:48 +00:00
Andy Wilkinson
08c85c1fba Separate welcome page handler mapping and its tests from auto-config
Closes gh-11094
2017-11-21 14:44:29 +00:00
Andy Wilkinson
ff3d7c2ca1 Polish 2017-11-21 12:23:16 +00:00
Phillip Webb
4d5de829cb Fix checkstyle error 2017-11-20 19:58:31 -08:00
Phillip Webb
e82913dd5a Align appendix edits with source code
Port editing changes from append to java source files to ensure that
IDE meta-data also reflects the improvements.

Closes gh-10870
2017-11-20 15:47:49 -08:00
Phillip Webb
e01c92a38a Polish 2017-11-20 12:44:39 -08:00
Phillip Webb
64c5e8b6ed Rename @DurationUnit -> @DefaultDurationUnit
Rename `@DurationUnit` to `@DefaultDurationUnit` to make it clearer
that it only changes the unit if one isn't specified by the user.

Closes gh-11078
2017-11-20 12:18:14 -08:00
Phillip Webb
6f3ca459ea Align MongoReactiveSessionConfiguration conditions
Align `MongoReactiveSessionConfiguration` `@ConditionalOnClass` with
`MongoSessionConfiguration`

See gh-11063
2017-11-20 12:07:03 -08:00
Andy Wilkinson
8a3502bdde Polish "Improve Spring Session auto-configuration tests"
See gh-11063
2017-11-20 17:13:35 +00:00
Vedran Pavic
d8e3960631 Improve Spring Session auto-configuration tests
Closes gh-11063
2017-11-20 17:13:35 +00:00
Brian Clozel
b7753a1f29 Polish 2017-11-20 17:38:49 +01:00
tinexw
e2bc90b6bb Add CacheControl config keys in spring.resources.*
This commit adds several configuration keys for customizing the
"Cache-Control" HTTP response header when serving static resources.

New keys are located in the "spring.resources.cache-control.*"
namespace; anything configured there will prevail on existing
"spring.resources.cache-period=" values, so as to mirror Spring MVC's
behavior.

Fixes gh-9432
2017-11-20 17:36:21 +01:00
Vedran Pavic
b6d9ae7efa Align Session auto-config with Redis namespace config support
See gh-11084
2017-11-20 11:16:34 +01:00
Phillip Webb
8f4bf233b4 Update configuration properties to use Duration
Update appropriate configuration properties to use the `Duration`
type, rather than an ad-hoc mix of milliseconds or seconds.

Configuration properties can now be defined in a consistent and readable
way. For example `server.session.timeout=5m`.

Properties that were previously declared using seconds are annotated
with `@DurationUnit` to ensure a smooth upgrade experience. For example
`server.session.timeout=20` continues to mean 20 seconds.

Fixes gh-11080
2017-11-19 21:52:57 -08:00
Stephane Nicoll
303b812363 Properly document default for useNewIdGeneratorMappings
Closes gh-11064
2017-11-19 13:14:12 +01:00
Phillip Webb
e147982045 Add FilteredClassLoader
Add `FilteredClassLoader` to replace `HideClassesClassLoader` and
`HidePackagesClassLoader`.

Fixes gh-10303
2017-11-18 23:20:00 -08:00
Phillip Webb
2f6aca222e Fix checkstyle violation
Fix public constructor accidentally added in commit 72862b565c.

See gh-10387
2017-11-18 20:43:59 -08:00
Phillip Webb
72862b565c Polish location check with vendor placeholder
Closes gh-10387
2017-11-18 20:29:43 -08:00
Eddú Meléndez
1ee47cec31 Support location check with vendor placeholder
Update location check logic triggered if `flyway.check-location=true`
to resolve any vendor placeholders in `flyway.locations`.

See gh-10387
2017-11-18 20:28:52 -08:00
Phillip Webb
4c29c35cbb Polish Kafka transaction support property
Closes gh-11076
2017-11-18 10:20:07 -08:00
nklmish
6d396b973f Add Kafka transaction support property
Add `spring.kafka.producer.transaction-id-prefix` property that will be
passed to `DefaultKafkaProducerFactory.setTransactionIdPrefix(...)`

See gh-11076
2017-11-18 10:15:39 -08:00
Johnny Lim
73c65286ea Polish 2017-11-18 10:07:30 -08:00
Stephane Nicoll
c4070e093c Polish 2017-11-18 09:05:28 +01:00
Johnny Lim
1783a072ad Remove explicit constructor super() calls
Closes gh-11068
2017-11-17 16:44:16 -08:00