Commit Graph

251 Commits (fb88a56af0738e7b480d95f70dc94aa3cc12b1d1)

Author SHA1 Message Date
Johnny Lim 90369996a9 Apply customize() to createCredentialNetworkMongoClient()
See gh-11376
7 years ago
Stephane Nicoll f57ff3a777 Merge branch '1.5.x' 7 years ago
Johnny Lim 3c5ccb1166 Polish
Closes gh-11418
7 years ago
Johnny Lim 4cc598ac5e Replace contains() with indexOf()
Closes gh-11373
7 years ago
Johnny Lim e4f0ad2165 Polish
Closes gh-11372
7 years ago
dreis2211 a434e5cc5f Fix JsonbHttpMessageConvertersConfiguration javadoc
Closes gh-11368
7 years ago
Phillip Webb 1ea921bfdd Migrate to OAuth2Client to use PropertyMapper
See gh-9018
7 years ago
Phillip Webb ba86b68484 Polish 7 years ago
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
7 years ago
Christoph Dreis 1a7fd6c359 Fix typo
Closes gh-11388
7 years ago
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
7 years ago
Madhura Bhave ec26488ff1 Allow encoding default password in reactive user details
See gh-10963
7 years ago
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
7 years ago
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
7 years ago
Phillip Webb befdbaaaa9 Polish 7 years ago
Stephane Nicoll 7566a197b0 Fix type for spring.data.cassandra.contact-points
Closes gh-11354
7 years ago
Stephane Nicoll dddf2c0013 Polish "Expose default RabbitMQ credentials in the metadata"
Closes gh-6863
7 years ago
Zoltan Altfatter 878a2e1a49 Expose default RabbitMQ credentials in the metadata
See gh-6863
7 years ago
Stephane Nicoll 0e20ed1d68 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 797ad13bfa Merge branch '1.5.x' 7 years ago
Phillip Webb 3273859fde Polish 7 years ago
Stephane Nicoll a626f5462d Consistent use of @AliasFor
Closes gh-10836
7 years ago
Stephane Nicoll 47c8b5731a polish 7 years ago
dreis2211 a93a4e8715 Use String.equalsIgnoreCase() where possible
Closes gh-11330
7 years ago
Thiago Hirata f3055f2685 UserNameAttribute for custom OAuth2 provider
The UserNameAttribute field for a custom OAuth2 provider was
ignored when building the ClientRegistration.

Closes gh-10672
7 years ago
Stephane Nicoll 23218add90 Polish 7 years ago
Stephane Nicoll 68c8f7bae6 Add support for useRelativeRedirects customization
Closes gh-10597
7 years ago
Stephane Nicoll 6a4a0e3f29 Polish "Make RabbitTemplate exchange and routingKey configurable"
Closes gh-10978
7 years ago
Arlo O'Keeffe 4e31d2041a Make RabbitTemplate exchange and routingKey configurable
See gh-10978
7 years ago
Stephane Nicoll 408368a1f9 Polish "Allow graceful shutdown of Atomikos"
Closes gh-11237
7 years ago
nklmish 46d94aba4f Allow graceful shutdown of Atomikos
See gh-11237
7 years ago
Stephane Nicoll 2da6675c42 Polish
See gh-10963
7 years ago
Madhura Bhave 47ed096981 Make default username and password configurable
Closes gh-10963
7 years ago
Stephane Nicoll 5ef9364085 Polish 7 years ago
Johnny Lim 96250743b5 Add missing "abstract" keywords
Closes gh-11303
7 years ago
Madhura Bhave 954cf72de4 Fix javadoc 7 years ago
Johnny Lim 6d54072e04 Remove "final" keywords
Closes gh-11294
7 years ago
Andy Wilkinson c0e3ae9042 Polish 7 years ago
Andy Wilkinson 996a7cf013 Upgrade to Flyway 5.0.0
Closes gh-11287
7 years ago
Johnny Lim 2c204f2154 Polish
Closes gh-11242
7 years ago
Stephane Nicoll 5dc28ec446 Merge branch '1.5.x' 7 years ago
Phillip Webb d7251f52a4 Polish 7 years ago
Andy Wilkinson 80543250a2 Rework properties for enabling Spring Data repositories
Rather than using two properties to enable or disable reactive and
imperative repositories for a particular store, this commit introduces
a new repository type condition that's backed by a single
spring.data.<store>.repositories.type property. The type can be
auto (automatically enables whatever's available), imperative (enables
imperative repositories), none (enables nothing), or reactive (enables
reactive repositories). The default is auto.

Repositories do not have a reactive option (such as JPA) continue to
have a spring.data.<store>.repositories.enabled property that takes a
boolean value.

Closes gh-11134
7 years ago
Brian Clozel 8b98db401c Polish
Closes gh-11090
7 years ago
Brian Clozel de208cd372 Do not handle WebFlux errors if response is committed
If the WebFlux handler commits the response but still sends an error
signal in the reactive pipeline, Spring Boot error handling should not
try to handle that error: once committed, it is impossible to change the
response status or the response headers. Writing to the body might also
lead to invalid responses.

This commit skips error handling if the response is committed and
delegates to Spring Framework's `HttpWebHandlerAdapter` which will log
the error.

Fixes gh-11168
7 years ago
Brian Clozel e3c3bb0076 Rename spring.cache.control to spring.cache.cachecontrol
Closes #11090
7 years ago
Johnny Lim 952224ef56 Polish
Closes gh-11193
7 years ago
Stephane Nicoll 33bd7ccc91 Merge branch '1.5.x' 7 years ago
Brian Clozel ee62633e33 Auto-Configure Freemarker in WebFlux
This commit adds support for basic auto-configuration for the Freemarker
template engine in WebFlux.

A few configuration properties in the `spring.freemarker.*` namespace
aren't supported yet, since they mostly apply to MVC (Servlet request
and session attributes).

Closes gh-10094
7 years ago
Phillip Webb 960083bd33 Polish 7 years ago
Craig Walls 64d02f8bb5 Remove Spring Social starters and auto-configuration
See gh-11117
7 years ago
Andy Wilkinson 22a426fe39 Polish 7 years ago
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
7 years ago
Stephane Nicoll 89054d32fa Polish "Fix CouchbaseReactiveRepositoriesAutoConfigurationTests"
Closes gh-11151
7 years ago
Eddú Meléndez ef3d44f680 Fix CouchbaseReactiveRepositoriesAutoConfigurationTests
See gh-11151
7 years ago
Stephane Nicoll 9543327406 Polish "Use BeanIds.SPRING_SECURITY_FILTER_CHAIN"
Closes gh-11162
7 years ago
Johnny Lim 70d92037bd Use BeanIds.SPRING_SECURITY_FILTER_CHAIN
See gh-11162
7 years ago
Johnny Lim d9828a0aaa Polish
See gh-11143
7 years ago
Johnny Lim dea95b2b67 Make CouchbaseReactiveRepositoriesAutoConfigureRegistrar package-private
Closes gh-11142
7 years ago
Johnny Lim 7d94695936 Harmonize CouchbaseReactiveRepositoriesAutoConfiguration conditions
Closes gh-11138
7 years ago
Andy Wilkinson 16b090c9bc Polish 7 years ago
Andy Wilkinson 7674841946 Log condition evaluation delta upon DevTools restart 7 years ago
Andy Wilkinson b3c5a050ad Polish message for matching beans produced by OnBeanCondition 7 years ago
Andy Wilkinson 51b56782a3 Apply customizers to build when created embedded Mongo client
Closes gh-11132
7 years ago
Stephane Nicoll 5ebed451e0 Remove dead code 7 years ago
Johnny Lim 01a48412d2 Polish
Closes gh-11126
7 years ago
Stephane Nicoll 0a5f064d39 Improve error metadata for Autoconfigure module 7 years ago
Stephane Nicoll 877ed041e7 Polish 7 years ago
Stephane Nicoll 13ccf45008 Polish
See gh-10884
7 years ago
Andy Wilkinson f12de333f5 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 69fb433eb7 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 59df2909b8 Format 7 years ago
Stephane Nicoll cc2d882d08 Polish
See gh-11090
7 years ago
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
7 years ago
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
7 years ago
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.
7 years ago
Johnny Lim 858d325577 Fix getter and setter for sMaxAge 7 years ago
Andy Wilkinson 2b1d1cd317 Polish "Auto-configure templated welcome page"
Closes gh-10545
7 years ago
Bruce Brouwer cc855f4462 Auto-configure templated welcome page
See gh-10545
7 years ago
Andy Wilkinson 08c85c1fba Separate welcome page handler mapping and its tests from auto-config
Closes gh-11094
7 years ago
Andy Wilkinson ff3d7c2ca1 Polish 7 years ago
Phillip Webb 4d5de829cb Fix checkstyle error 7 years ago
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
7 years ago
Phillip Webb e01c92a38a Polish 7 years ago
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
7 years ago
Phillip Webb 6f3ca459ea Align MongoReactiveSessionConfiguration conditions
Align `MongoReactiveSessionConfiguration` `@ConditionalOnClass` with
`MongoSessionConfiguration`

See gh-11063
7 years ago
Andy Wilkinson 8a3502bdde Polish "Improve Spring Session auto-configuration tests"
See gh-11063
7 years ago
Vedran Pavic d8e3960631 Improve Spring Session auto-configuration tests
Closes gh-11063
7 years ago
Brian Clozel b7753a1f29 Polish 7 years ago
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
7 years ago
Vedran Pavic b6d9ae7efa Align Session auto-config with Redis namespace config support
See gh-11084
7 years ago
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
7 years ago
Stephane Nicoll 303b812363 Properly document default for useNewIdGeneratorMappings
Closes gh-11064
7 years ago
Phillip Webb e147982045 Add FilteredClassLoader
Add `FilteredClassLoader` to replace `HideClassesClassLoader` and
`HidePackagesClassLoader`.

Fixes gh-10303
7 years ago
Phillip Webb 2f6aca222e Fix checkstyle violation
Fix public constructor accidentally added in commit 72862b565c.

See gh-10387
7 years ago
Phillip Webb 72862b565c Polish location check with vendor placeholder
Closes gh-10387
7 years ago
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
7 years ago
Phillip Webb 4c29c35cbb Polish Kafka transaction support property
Closes gh-11076
7 years ago
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
7 years ago
Johnny Lim 73c65286ea Polish 7 years ago