Commit Graph

782 Commits

Author SHA1 Message Date
Stephane Nicoll 0a5f064d39 Improve error metadata for Autoconfigure module 2017-11-23 16:11:48 +01:00
Stephane Nicoll 3a6a238ea9 Improve error metadata for Actuator 2017-11-23 15:59:51 +01:00
Andy Wilkinson 1a76b5122d Merge branch '1.5.x' 2017-11-23 14:21:17 +00:00
Andy Wilkinson 72b14b8add Merge branch '1.5.x' 2017-11-23 13:15:41 +00:00
Stephane Nicoll c6709899db Polish 2017-11-23 13:52:58 +01:00
Andy Wilkinson c748a009b0 Merge branch '1.5.x' 2017-11-23 12:43:29 +00:00
Stephane Nicoll 877ed041e7 Polish 2017-11-23 13:38:11 +01:00
Stephane Nicoll 02a0683cff Polish
See gh-10595
2017-11-23 13:32:03 +01:00
Stephane Nicoll 13ccf45008 Polish
See gh-10884
2017-11-23 13:28:44 +01:00
Stephane Nicoll c9c9e3664e Polish
See gh-11113
2017-11-23 13:26:55 +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
Vedran Pavic 63aef58d30 Fix references to management related properties
See gh-11091
2017-11-23 10:48:37 +01:00
Stephane Nicoll f7ed24cb7c Merge branch '1.5.x' 2017-11-23 10:46:29 +01:00
Stephane Nicoll 50985b7e83 Polish 2017-11-23 10:40:25 +01:00
Eric Spiegelberg 789e7670d8 Add reference to Neo4j's health indicator
Closes gh-11115
2017-11-23 10:35:17 +01: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 07f71e889e Move `/application` to `/actuator`
Change the endpoint default path from `/application` to `/actuator`.

Fixes gh-10970
2017-11-22 23:18:22 -08:00
Phillip Webb 3e2ede51d6 Delete `status` documentation
See gh-11113
2017-11-22 23:18:21 -08:00
Phillip Webb 05d2ca4f16 Allow bean binding if property binding fails
Update `Binder` so that if a property exists, but it cannot be converted
to required type, bean binding is attempted.

Prior to this commit, if a user happened to have an environment
variable named `SERVER` the binder would fail when trying to directly
convert its `String` value into a `ServerProperties`

Fixes gh-10945
2017-11-22 23:18:21 -08: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 31025d9f6c Drop status endpoint
Drop the status endpoint and merge functionality back into the health
endpoint. The `management.endpoint.health.show-details` property can
be used to change if full details, or just the status is displayed.

Fixes gh-11113
2017-11-22 22:01:58 -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
Phillip Webb 47bc5e71ab Polish 2017-11-22 13:17:26 -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
Andy Wilkinson ffca60d308 Revert "Rework BootRun so that it does not subclass JavaExec"
This reverts commit 6eee9de3c1.

Closes gh-10872
2017-11-22 17:22:44 +00:00
Johnny Lim 858d325577 Fix getter and setter for sMaxAge 2017-11-22 23:21:18 +09:00
Stephane Nicoll 1b59e88aeb Polish
See gh-10881
2017-11-22 10:44:33 +01:00
Madhura Bhave 616bada6f5 Document ReactiveHealthIndicator support
Closes gh-10881
2017-11-21 15:39:27 -08:00
Andy Wilkinson e17bbd179a Upgrade to Sqlite Jdbc 3.21.0
Closes gh-11103
2017-11-21 15:58:35 +00:00
Andy Wilkinson d272c57de0 Upgrade to Selenium Htmlunit 2.28.1
Closes gh-11102
2017-11-21 15:58:34 +00:00
Andy Wilkinson 9a0ffbe5be Upgrade to Neo4j Ogm 3.0.2
Closes gh-11101
2017-11-21 15:58:33 +00:00
Andy Wilkinson 1021846762 Upgrade to Hibernate Validator 6.0.5.Final
Closes gh-11100
2017-11-21 15:58:33 +00:00
Andy Wilkinson e2759a3c6c Upgrade to Johnzon Jsonb 1.1.5
Closes gh-11099
2017-11-21 15:58:32 +00:00
Andy Wilkinson 4148cdeef9 Upgrade to Rxjava 1.3.4
Closes gh-11098
2017-11-21 15:58:31 +00:00
Andy Wilkinson 7d54b70329 Upgrade to Lettuce 5.0.1.RELEASE
Closes gh-11097
2017-11-21 15:58:31 +00:00
Andy Wilkinson 895496b2c2 Upgrade to Cassandra Driver 3.3.2
Closes gh-11096
2017-11-21 15:58:30 +00:00
Andy Wilkinson cf20ac788d Merge branch '1.5.x' 2017-11-21 15:56:16 +00: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
Andy Wilkinson 64ae83b964 Polish visibility in ConfigurationPropertiesBinderBuilder 2017-11-21 12:20:49 +00:00
Andy Wilkinson aa9c5e6e08 Align expectation with new endpoint enabled property description
See gh-10870
2017-11-21 11:38:50 +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
Jay Bryant 3e5b7dd4ac Make editorial changes to appendix-application-properties.adoc
See gh-10870
2017-11-20 15:47:18 -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
Andy Wilkinson bc98b84013 Reduce excessive logging by disabling Statsd metrics export
Closes gh-11009
2017-11-20 15:27:01 +00:00
Andy Wilkinson 4d1a98b380 Improve exception message that reports clashing endpoint operations
Closes gh-10942
2017-11-20 14:52:27 +00:00
Andy Wilkinson 41c297063b Record metrics for request handled by ParameterizableViewController
Closes gh-10335
2017-11-20 13:20:35 +00:00
Andy Wilkinson 331c7a1c56 Make handler Object available to WebMvcTagsProvider.httpRequestTags
Closes gh-11088
2017-11-20 13:18:48 +00:00
Andy Wilkinson 417c98304d Remove assumption about file separator that is incorrect on Windows
Closes gh-11087
2017-11-20 11:48:07 +00:00
Stephane Nicoll 75079b3bb8 Polish "Align Session auto-config with Redis namespace config support"
Closes gh-11084
2017-11-20 11:29:27 +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
Andy Wilkinson f654b9b302 Build against Spring Integration snapshots for 5.0.0.RELEASE
See gh-11085
2017-11-20 09:56:43 +00:00
Stephane Nicoll aaabc45281 Fix typo 2017-11-20 09:01:36 +01:00
Stephane Nicoll e4e635f09a Start building against Spring Session Data MongoDB 2.0 snapshots
See gh-11083
2017-11-20 08:31:23 +01:00
Stephane Nicoll 87d2b8c54e Start building against Spring Session 2.0 snapshots
See gh-11082
2017-11-20 08:30:11 +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
Phillip Webb cbaf0fa686 Support Duration in generated meta-data
Update the configuration properties annotation processor to deal
with `Duration` based default values. For example a field that
defaults to `Duration.ofSeconds(10)` will have a meta-data default
value of `10s`.

See gh-11080
2017-11-19 21:51:10 -08:00
Phillip Webb 7c6c9ddf09 Refine duration converter for optional suffix
Update `StringToDurationConverter` so that the suffix is optional and
values such as `100`, `+100`, `-100` are assumed to be milliseconds.

Also add support for `@DurationUnit` to allow the unit to be changed
on a per-field basis (allowing for better back-compatibility).

Closes gh-11078
2017-11-19 21:49:35 -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 74c48767a1 Add beanFactory context constructors
Align `WebServer` application contexts with Spring Framework by allowing
a custom beanFactory to be used on construction.

Fixes gh-8547
2017-11-18 21:55:03 -08:00
Phillip Webb 99afc4bc1f Allow more flexible Duration binding
Extend `BinderConversionService` to support `Duration` parsing of
the more readable `10s` form (equivalent to 10 seconds). Standard
ISO-8601 parsing also remains as an option.

Fixes gh-11078
2017-11-18 21:41:27 -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
Phillip Webb 7ff2cb5dc8 Polish 2017-11-18 10:03:30 -08:00
Stephane Nicoll 3e9c2b84b6 Fix default ReactiveWebApplicationContext class
Closes gh-11074
2017-11-18 09:53:45 +01:00
dreis2211 23da409b31 Remove duplicate words
Closes gh-11073
2017-11-18 09:17:30 +01:00
Stephane Nicoll c4070e093c Polish 2017-11-18 09:05:28 +01:00
Madhura Bhave 49768e2b1f Register config classes once in reactive child context
Fixes gh-10939
2017-11-17 19:49:31 -08:00
Johnny Lim 1783a072ad Remove explicit constructor super() calls
Closes gh-11068
2017-11-17 16:44:16 -08:00
Phillip Webb a6cefc5ba0 Polish 2017-11-17 14:18:31 -08:00
Madhura Bhave 551c08ebfe Update conditions for OAuth security config
Closes gh-11070
2017-11-17 12:43:48 -08:00
Madhura Bhave 5ce9067e30 Clean trailing slash from endpoints.web.base-path
Fixes gh-11021
2017-11-17 12:00:55 -08:00
Madhura Bhave 4a41c02926 Update redirect-uri-template in oauth sample and docs
Fixes gh-11014
2017-11-17 11:29:01 -08:00
Madhura Bhave d1766509f1 Rename clientReg redirectUri to redirectUriTemplate
To keep it consistent with changes made in Spring Security

Closes gh-11038
2017-11-17 10:16:38 -08:00
Andy Wilkinson 3e46b5c5c7 Auto-configure endpoints in main context so they are always discovered
Closes gh-11046
2017-11-17 14:09:20 +00:00
Andy Wilkinson b9c104a22d Upgrade to Netty 4.1.17.Final
Closes gh-10993
2017-11-17 13:54:07 +00:00
Andy Wilkinson 3b45342359 Make Actuator Web API documentation compatible with Java 9
Closes gh-8042
2017-11-17 12:24:37 +00:00
Jay Bryant 706600c003 Polish Actuator Web API documentation
See gh-8042
2017-11-17 11:27:41 +00:00
Andy Wilkinson 4de208bc94 Provide reference documentation for Actuator web endpoints
Closes gh-8042
2017-11-17 11:27:16 +00:00
Stephane Nicoll 4ff8126217 Make binder API private again
Closes gh-10867
2017-11-17 11:23:34 +01:00
Stephane Nicoll 0f69a157ac Upgrade to Reactor Bismuth-SR4
Closes gh-11030
2017-11-17 10:41:10 +01:00
Johnny Lim 639bf5e99c Update "Building reference documentation" section
This commit also changes `spring-boot-maven-plugin/pom.xml` to make it
work with `full` Maven profile.

Closes gh-11045
2017-11-17 10:05:04 +01:00
Vedran Pavic 44eebcaff5 Fix `SessionAutoConfiguration` ordering
This commit updates `SessionAutoConfiguration` to ensure it is processed
after `MongoDataAutoConfiguration` and
`MongoReactiveDataAutoConfiguration`, instead of `MongoAutoConfiguration`
and `MongoReactiveAutoConfiguration`. This is required in order for
MongoDB Session auto-configuration to work, since
`MongoSessionConfiguration` and `MongoReactiveSessionConfiguration` are
conditional on `MongoOperations` and `ReactiveMongoOperations` beans,
respectively.

Closes gh-11054
2017-11-17 10:02:52 +01:00
Johnny Lim e8563c54dd Polish
Closes gh-11050
2017-11-17 09:56:16 +01:00
Stephane Nicoll 54b54b7c30 Fix condition for Datadog's api key
Closes gh-11053
2017-11-17 09:47:57 +01:00
Stephane Nicoll 5728d9614e Use a List rather than an array for consistency
Closes gh-11029
2017-11-17 09:14:45 +01:00
Stephane Nicoll a0374c0c31 Polish "Add 'enableSpringElCompiler' to ThymeleafProperties"
Closes gh-10869
2017-11-16 15:56:52 +01:00
Kazuki Shimizu cf350cf85b Add 'enableSpringElCompiler' to ThymeleafProperties
See gh-10869
2017-11-16 15:46:01 +01:00
Johnny Lim 72e5ba3e24 Fix a broken Asciidoctor syntax
Closes gh-11044
2017-11-16 11:29:30 +01:00
Johnny Lim cbb483735d Polish
Closes gh-10948
2017-11-16 10:36:20 +01:00
dreis2211 1e4941e29a Use StandardCharsets where possible
Closes gh-11036
2017-11-16 10:34:44 +01:00
Stephane Nicoll bcab23e538 Polish "Separate endpoint concerns"
* Fix the endpoint prefix for generated metadata.
* Polish and improve configuration key descriptions.

Closes gh-10176
2017-11-16 10:32:34 +01:00
Phillip Webb 9411d17649 Fix malformed javadoc 2017-11-15 17:07:16 -08:00
Phillip Webb 3035df59cc Use a String[] so sential nodes are trimmed
Update `RedisProperties` to use an actual String[] for sentinal nodes
rather than a simple String. This allows us to lean on the updated
binder to automatically trim the elements.

Fixes gh-11029
2017-11-15 16:19:59 -08:00
Phillip Webb fd5c43cdc9 Separate endpoint concerns
Update endpoint code to provide cleaner separation of concerns.
Specifically, the top level endpoint package is no longer aware of
the fact that JMX and HTTP are ultimately used to expose endpoints.
Caching concerns have also been abstracted behind a general purpose
`OperationMethodInvokerAdvisor` interface.

Configuration properties have been refined to further enforce
separation. The `management.endpoint.<name>` prefix provides
configuration for a  single endpoint (including enable and cache
time-to-live). These  properties are now technology agnostic (they
don't include `web` or `jmx` sub properties).

The `management.endpoints.<technology>` prefix provide exposure specific
configuration. For example, `management.endpoints.web.path-mapping`
allow endpoint URLs to be changed.

Endpoint enabled/disabled logic has been simplified so that endpoints
can't be disabled per exposure technology. Instead a filter based
approach is used to allow refinement of what endpoints are exposed over
a given technology.

Fixes gh-10176
2017-11-15 14:41:38 -08:00
Phillip Webb d24709c696 Fix spaces -> tabs in documentation appendix 2017-11-15 14:40:28 -08:00
Phillip Webb f647f5689f Polish 2017-11-15 12:47:47 -08:00
Andy Wilkinson cf485ce144 Merge branch '1.5.x' 2017-11-15 19:43:32 +00:00
Stephane Nicoll d3daded636 Reinstate spring-boot-starter-data-redis-reactive
Closes gh-11035
2017-11-15 19:02:59 +01:00
Andy Wilkinson def47c31de Start building against Reactor Bismuth-SR4 snapshots
See gh-11030
2017-11-15 13:46:21 +00:00
Andy Wilkinson 1a094598b8 Add an endpoint for retrieving information about scheduled tasks
Closes gh-8831
2017-11-15 13:28:38 +00:00
Stephane Nicoll 370453c765 Fix reference to AutoConfigurationReportLoggingInitializer in docs
Closes gh-11026
2017-11-15 09:14:01 +01:00
Madhura Bhave 5f5e7e5089 Update list overriding documentation
Closes gh-11012
2017-11-14 12:27:42 -08:00
Stephane Nicoll bbdff1a5bf Polish "Add support for reactive Spring Data Couchbase"
Closes gh-10812
2017-11-14 17:49:02 +01:00
Alex Derkach 568cd6472b Add support for reactive Spring Data Couchbase
See gh-10812
2017-11-14 16:55:03 +01:00
Stephane Nicoll 792de8f42a Add a note regarding Jackson Module usage with Web[Mvc|Flux]Test
Closes gh-10648
2017-11-14 15:29:47 +01:00
Stephane Nicoll 1830dcf103 Rename AutoConfigurationReportEndpoint to ConditionsEndpoint
This commit further aligns the change to ConditionEvaluationReport by
renaming the 'autoconfig' endpoint to 'conditions'.

Closes gh-2945
2017-11-14 15:25:07 +01:00
sdeleuze 1f26b7d370 Upgrade to Kotlin 1.1.60
Closes gh-11016
2017-11-14 11:37:51 +01:00
Stephane Nicoll 401fe7e1e2 Polish micrometer configuration key descriptions
Closes gh-10890
2017-11-14 11:37:05 +01:00
Stephane Nicoll 92c62b6e9f Remove resuscitated properties from the deprecation list
This commit removes two properties that were remove in earlier
milestones of Spring Boot 2 and reintroduced with the support of
micrometer.

Closes gh-11015
2017-11-14 11:34:31 +01:00
Andy Wilkinson c74b8374bc Revert "Upgrade to Netty 4.1.17.Final"
This reverts commit d01716238f.

See gh-10993
2017-11-13 11:57:05 +00:00
Andy Wilkinson a940e670a4 Upgrade to Xmlunit2 2.5.1
Closes gh-11004
2017-11-13 11:01:09 +00:00
Andy Wilkinson 5cc6b11583 Upgrade to Spring Cloud Connectors 2.0.1.RELEASE
Closes gh-11003
2017-11-13 11:01:09 +00:00
Andy Wilkinson 9891da96cc Upgrade to Selenium 3.7.1
Closes gh-11002
2017-11-13 11:01:08 +00:00
Andy Wilkinson 37789c6809 Upgrade to Selenium Htmlunit 2.28
Closes gh-11001
2017-11-13 11:01:07 +00:00
Andy Wilkinson 2dd17fb5db Upgrade to Mockito 2.12.0
Closes gh-11000
2017-11-13 11:01:06 +00:00
Andy Wilkinson 59a94fdb16 Upgrade to Mariadb 2.2.0
Closes gh-10999
2017-11-13 11:01:06 +00:00
Andy Wilkinson b3a90c7f8a Upgrade to Infinispan 9.1.3.Final
Closes gh-10998
2017-11-13 11:01:05 +00:00
Andy Wilkinson ef0b1ff2e8 Upgrade to Commons Lang3 3.7
Closes gh-10997
2017-11-13 11:01:05 +00:00
Andy Wilkinson 66fae94368 Upgrade to Artemis 2.4.0
Closes gh-10996
2017-11-13 11:01:04 +00:00
Andy Wilkinson 7f2aa318ae Upgrade to Htmlunit 2.28
Closes gh-10995
2017-11-13 11:01:03 +00:00
Andy Wilkinson 202d5b65e4 Upgrade to Byte Buddy 1.7.9
Closes gh-10994
2017-11-13 11:01:02 +00:00
Andy Wilkinson d01716238f Upgrade to Netty 4.1.17.Final
Closes gh-10993
2017-11-13 11:01:02 +00:00
Andy Wilkinson ca971e5b34 Upgrade to Hikaricp 2.7.3
Closes gh-10992
2017-11-13 11:01:01 +00:00
Andy Wilkinson 95703aa7fb Upgrade to Cassandra Driver 3.3.1
Closes gh-10991
2017-11-13 11:01:00 +00:00
Andy Wilkinson 6567d7bd2f Upgrade to Couchbase Client 2.5.2
Closes gh-10990
2017-11-13 11:01:00 +00:00
Eddú Meléndez 0ea2184074 Upgrade to JUnit Jupiter 5.0.2
Closes gh-10986
2017-11-13 09:53:29 +01:00
Andy Wilkinson d5fa4b069f Start building against Spring Framework 5.0.2 snapshots
See gh-10982
2017-11-12 17:51:49 +00:00
Andy Wilkinson 71632ac767 Polish "Provide access to root URI from TestRestTemplate"
See gh-10641
2017-11-12 12:11:57 +00:00
tinexw c1205c3243 Provide access to root URI from TestRestTemplate
Closes gh-10641
2017-11-12 12:05:53 +00:00
Andy Wilkinson e92e56dda5 Drop LevelRemappingAppender
Drop LevelRemappingAppender as, following the changes made in e8f8556d
for gh-7657, it was no longer having any effect.

Closes gh-10842
2017-11-12 12:00:59 +00:00
Stephane Nicoll 5072d4ab04 Merge branch '1.5.x' 2017-11-12 12:38:24 +01:00
Andy Wilkinson eeede79ad6 Add dependency management from com.rabbitmq:amqp-client
Closes gh-7509
2017-11-12 11:30:42 +00:00
Andy Wilkinson f1555319c4 Correct static-path-pattern property in WebFlux documentation
Closes gh-10843
2017-11-12 11:24:02 +00:00
Andy Wilkinson 806cf32549 Drop redundant web extension for sessions endpoint
Changes made in f1cfad67 mean that the web-specific extension is no
longer required as the infrastructure now automatically produces a
bad request (400) response when a required query parameter is absent.

See gh-10372
2017-11-12 11:19:14 +00:00
Andy Wilkinson 8d04525eb7 Document that sessions endpoint not available for reactive sessions
Closes gh-10882
2017-11-12 11:10:05 +00:00
Andy Wilkinson c7cac927f7 Bring spring-boot-actuator's README up to date
Closes gh-10686
2017-11-12 11:00:48 +00:00
Andy Wilkinson 00f41a9056 Update docs to reflect that an endpoint's ID is no longer configurable
Closes gh-10862
2017-11-12 10:52:39 +00:00
Andy Wilkinson b311237906 Update docs to reflect change to default Filter dispatcher type
Closes gh-10888
See gh-7467
2017-11-12 10:49:44 +00:00
Andy Wilkinson 2723892be3 Consistently include context id in endpoint responses
Closes gh-10980
2017-11-11 20:48:18 +00:00
Andy Wilkinson 07462be090 Polish 2017-11-11 16:29:12 +00:00
Andy Wilkinson 89173bd227 Upgrade to Spring Kafka 2.1.0.RC1
Closes gh-10975
2017-11-11 16:21:35 +00:00
Stephane Nicoll dac7d9c174 Rename AutoConfigurationReportLoggingInitializer to ConditionEvaluationReportLoggingListener
Closes gh-2945
2017-11-10 16:20:13 +01:00
Stephane Nicoll 26158c1ee2 Add default order for JobLauncherCommandLineRunner
Closes gh-2943
2017-11-10 16:06:39 +01:00
Stephane Nicoll 4e88db9883 Scan converters with @WebMvcTest and @WebFluxTest
This commit makes sure to automatically scan `Converter` and
`GenericConverter` beans when a test uses `@WebMvcTest` or
`@WebFluxTest`.

Closes gh-10802
2017-11-10 15:58:27 +01:00
Stephane Nicoll 46ef178f04 Polish "Improve cache auto-configuration for Redis"
Closes gh-10944
2017-11-10 14:42:50 +01:00
Ryon a4ed406ee8 Improve cache auto-configuration for Redis
Expose key prefix, TTL and null value settings for spring-data-redis'
RedisCacheConfiguration in Spring .properties/yml configuration files.

Example:

spring.cache.redis.ttl=PT15M
spring.cache.redis.keyPrefix=foo
spring.cache.redis.useKeyPrefix=false
spring.cache.redis.cacheNullValues=false

See gh-10795
2017-11-10 11:30:46 +01:00
Johnny Lim bd0dcfb172 Utilize StandardCharsets
Closes gh-10972
2017-11-10 09:49:13 +01:00
Andy Wilkinson e9c81bf702 Polish 2017-11-09 17:07:15 +00:00
Andy Wilkinson f02c390ee5 Simplify commons-logging exclusions and remove redundant dep mgmnt
c719ab7a adding dependency management for a number of Apache Commons
projects to exclude commons-logging and resolve problems with
dependency convergence.

As Boot's dependencies have evolved, much of this dependency
management has become redundant. This commit removes it, and excludes
commons-logging in the single starter that still needs it instead.

Closes gh-7050
2017-11-09 15:53:14 +00:00
Andy Wilkinson 544da5e612 Reinstate 2nd blank line after lists at end of .adoc files
Without the 2nd blank line, Asciidoctor does not render the content
in the next file correctly or omits it entirely.

Closes gh-10946
2017-11-09 15:34:47 +00:00
Andy Wilkinson f4570710c1 Make Tomcat auto-config back off when UpgradeProtocol is absent
Closes gh-10960
2017-11-09 14:42:14 +00:00
dreis2211 93b1ebb7fa Use Integer::compare in AutoConfigurationSorter
Closes gh-10959
2017-11-09 09:50:38 +01:00
Madhura Bhave 3be521e825 Add DefaultHandlerExceptionResolver to child context
Fixes gh-10560
2017-11-08 17:52:24 -08:00
Madhura Bhave 7c3e555ff9 Update Security features documentation
Closes gh-10844
2017-11-08 13:27:28 -08:00
Stephane Nicoll 8230cc5028 Upgrade to Thymeleaf 3.0.9.RELEASE
Closes gh-10954
2017-11-08 16:10:17 +01:00
Madhura Bhave 8db77a6a61 Properly configure tldSkipPatterns for Tomcat
Fixes gh-10391
2017-11-07 14:54:32 -08:00
Stephane Nicoll 424793d806 Merge branch '1.5.x' 2017-11-07 08:46:29 +01:00
Phillip Webb 06b1b453a6 Limit when SystemEnvironment mapping is used
Update `SpringConfigurationPropertySource` so that the
`SystemEnvironmentPropertyMapper` is only used for the "actual" system
environment property source. This allows SystemEnvironmentProperySource
class to be used for other purposes (for example, Spring Cloud uses it
to as an override source providing decryption).

Only property sources named `systemEnvironment` or ending with
`-systemEnvironment` now have the `SystemEnvironmentPropertyMapper`
applied. The `TestPropertyValues` has been retrofitted to name the
source it adds appropriately.

Fixes gh-10840
2017-11-06 13:12:25 -08:00
Phillip Webb e9f31f9c34 Improve configuration properties back-compatibility
Refine `SystemEnvironmentPropertyMapper` to support environment
variables that would have worked in Spring Boot 1.5. Specifically,
camelCase property bindings now support an additional underscore. The
recommended way to map `fooBar` is still `PREFIX_FOOBAR`, however,
`PREFIX_FOO_BAR` will now also work.

Fixes gh-10873
2017-11-06 11:21:16 -08:00
Phillip Webb 1e7d85a632 Polish 2017-11-06 10:11:50 -08:00
Andy Wilkinson 723222aa95 Allow configuredLevel to be null when configuring a logger
Null value is used to indicate that the configured level should be
cleared.

Closes gh-10934
2017-11-06 12:27:39 +00:00
Stephane Nicoll dbea25fa8b Polish "Log context path at startup"
Closes gh-10544
2017-11-06 12:49:43 +01:00
tinexw f76479fb99 Log context path at startup
See gh-10544
2017-11-06 12:49:43 +01:00
Andy Wilkinson 60afbdc868 Polish 2017-11-06 11:44:53 +00:00
Johnny Lim c05a299520 Polish
Closes gh-10921
2017-11-06 12:28:43 +01:00
Phillip Webb 0fbb4989da Allow recursive list binding when iterable source
Further refine recursive binding rules so that Lists are supported when
the underlying source is iterable.

Close gh-10702
2017-11-05 09:39:17 -08:00
Phillip Webb 588dcf76c6 Only allow binder recursion with Maps
Refine the binder recursion rules introduced in commit f337323819 so
they only apply to Maps. Recursive List and Array binding is now no
longer allowed. Prior to this commit, binding a List that contained a
reference to itself would fail with a `StackOverflowException` if the
underlying property source was not iterable.

Fixes gh-10702
2017-11-04 23:14:03 -07:00
Madhura Bhave 99ad79dbe6 Add tests to trigger binder stack overflow error
Update `CollectionBinderTests` with additional tests that cause a
`StackOverflowException` due to recursive list binding.

See gh-10702
2017-11-04 23:06:38 -07:00
Phillip Webb 861469fb72 Remove accidental System.out 2017-11-04 21:57:59 -07:00
Phillip Webb fabf14ff35 Allow ApplicationPid to write to a new file
Update `ApplicationPid` so that "canWrite" is only called for files
that already exist.

See gh-9922
Fixes gh-10784
2017-11-03 23:54:31 -07:00
Phillip Webb cf17e5708b Polish Micrometer 1.0.0-rc.3 upgrade
Polish Micrometer 1.0.0-rc.3 upgrade changes.

Closes gh-10906
2017-11-03 23:47:51 -07:00
Jon Schneider 65e6876025 Upgrade to Micrometer 1.0.0-rc.3
Upgrade to Micrometer 1.0.0-rc.3 and refactor existing
auto-configuration to align with updated APIs.

Note that Spring MVC instrumentation has now changed from an interceptor
to a Filter.

See gh-10906
2017-11-03 23:37:25 -07:00
Phillip Webb fa191d8c73 Align ReactiveWebApplicationContext with framework
Refactor `ReactiveWebApplicationContext` implementations to align closer
with the `WebApplicationContext` implementations defined in
Spring Framework.

The following classes are now provided:

  - `AnnotationConfigReactiveWebApplicationContext` -- A refreshable
    reactive web context with support for `@Configuration` classes.

  - `GenericReactiveWebApplicationContext` -- A non-refreshable reactive
    GenericApplicationContext.

  - `ReactiveWebServerApplicationContext` --  A non-refreshable reactive
    GenericApplicationContext with support for server discovery.

  - `AnnotationConfigReactiveWebServerApplicationContext` -- A
    non-refreshable reactive `GenericApplicationContext` with support
    for `@Configuration` classes and server discovery.

These classes roughly align to the following Servlet equivalents:

  - `AnnotationConfigWebApplicationContext` (Spring Framework)
  - `GenericWebApplicationContext` (Spring Framework)
  - `ServletWebServerApplicationContext` (Spring Boot)
  - `AnnotationConfigServletWebServerApplicationContext` (Spring Boot)

An additional `ConfigurableReactiveWebEnvironment` interface as also
been introduced, primarily for `@ConditionalOnWebApplication` to use.

Fixes gh-10852
2017-11-03 19:07:23 -07:00
Phillip Webb b6166dc12a Move `Assume` to spring-boot-test-support
Fixes gh-10866
2017-11-03 19:07:23 -07:00
Phillip Webb 427d262297 Polish 2017-11-03 19:07:23 -07:00
Andy Wilkinson a0580da8fb Upgrade to Spring Ws 3.0.0.RELEASE
Closes gh-10920
2017-11-03 20:02:09 +00:00
Andy Wilkinson c801101b14 Upgrade to Selenium 3.7.0
Closes gh-10919
2017-11-03 20:02:09 +00:00
Andy Wilkinson d79deb3eb7 Upgrade to Infinispan 9.1.2.Final
Closes gh-10918
2017-11-03 20:02:08 +00:00
Andy Wilkinson ffc2351484 Upgrade to Javax Json 1.1.2
Closes gh-10917
2017-11-03 20:02:08 +00:00
Andy Wilkinson 18348dd205 Upgrade to Sendgrid 4.1.2
Closes gh-10916
2017-11-03 20:02:07 +00:00
Andy Wilkinson 90f9f969d3 Upgrade to Caffeine 2.6.0
Closes gh-10915
2017-11-03 20:02:06 +00:00
Andy Wilkinson 7b757dc69a Merge branch '1.5.x' 2017-11-03 20:00:36 +00:00
Madhura Bhave 55b7a48bee Add missing conditionals 2017-11-03 11:41:55 -07:00
Brian Clozel fa0926b178 Error handling for WebFlux should log HTTP 5xx errors
This commit ensures that all errors handled by the
`DefaultErrorWebExceptionHandler` (Spring WebFlux error convetion
support) logs an error with request information and exception
stacktrace.

This is limited to errors that result in an HTTP 5xx error.
Exceptions that extend `ResponseStatusException` and set a non-5xx
status will not be logged.

Closes gh-10904
2017-11-03 16:40:59 +01:00
Andy Wilkinson bfe2f85a4f Merge branch '1.5.x' 2017-11-03 14:46:25 +00:00
Brian Clozel bb9396e3a4 Enable HTTP/2 support for Tomcat and Undertow
This commit enables HTTP/2 support for Tomcat and Undertow, for both
Servlet-based and Reactive applications.

Enabling the `server.http2.enabled` configuration flag is enough with
Undertow.

Tomcat has a few prerequisites:

* Tomcat 8.5 requires JDK8+ and the proper libtcnative version installed
on the host
* Tomcat 9.0.x requires JDK9+

Closes gh-10043
2017-11-03 14:10:40 +01:00
Brian Clozel 58db841c8f Add Http2 configuration properties
This commit adds a new configuration properties class for configuring
HTTP/2 protocol support.
By default, this protocol is disabled as enabling it requires several
manual changes:

* configuring a web server for proper TLS and ALPN support
* configuring a proper SSL certificate

See gh-10043
2017-11-03 13:56:06 +01:00
Brian Clozel 7f58db7d0e Apply TLS configuration to reactive web servers
This commit applies the SSL configuration to the following reactive web
servers: Jetty, Tomcat, Undertow, Reactor Netty.

Closes gh-9431
2017-11-03 13:56:06 +01:00
Brian Clozel 5f57578b71 Enable APR optional support in Tomcat servers
This commits adds the AprLifecycleListener as a default
LifecycleListener in order to detect and use automatically the
tomcatnative library if it is available, for SSL support.

This feature can be useful for both performance reasons or for
supporting ALPN when using JDK8.

See gh-10043
Closes gh-9964
2017-11-03 13:56:06 +01:00
Andy Wilkinson 5cf50b6ccc Remove dependency management for spring-boot-starter-mobile
See gh-10884
2017-11-03 11:48:46 +00:00
Phillip Webb 3f00ba3cad Polish 2017-11-03 00:13:02 -07:00
Jay Bryant 9fc9c55c90 Format production-ready-features.adoc to 90 chars
Remove extraneous white space and adjusted the length of non-code lines
to be as close to 90 characters (but not over 90 characters) as
possible.

Update a couple things I missed in the editing pass, too.

Closes gh-10897
2017-11-02 23:22:19 -07:00
Jay Bryant 92e0eb0230 Format spring-boot-features.adoc to 90 chars
Remove extraneous white space and adjusted the length of non-code lines
to be as close to 90 characters (but not over 90 characters) as
possible.

Update a couple things I missed in the editing pass, too.

Closes gh-10896
2017-11-02 23:22:18 -07:00
Jay Bryant f8bcdc9082 Format using-spring-boot.adoc to 90 chars
Remove extraneous white space and adjusted the length of non-code lines
to be as close to 90 characters (but not over 90 characters) as
possible.

Update a couple things I missed in the editing pass, too.

Closes gh-10893
2017-11-02 23:22:18 -07:00
Jay Bryant ccfff94bbd Format getting-started.adoc to 90 chars
Remove extraneous white space and adjusted the length of non-code lines
to be as close to 90 characters (but not over 90 characters) as
possible.

Update a couple things I missed in the editing pass, too.

Closes gh-10892
2017-11-02 23:22:18 -07:00
Johnny Lim 84d137d41d Restore execution permission on launch.script
Restore the execute permission that was accidentally removed in
commit 5ee28a08e1.

Closes gh-10801
2017-11-02 23:22:17 -07:00
Nguyen Duy Tiep fae7a09b83 Support custom SpringBootContextLoader environment
Provide a `getEnvironment` method in `SpringBootContextLoader` to allow
specialized `ConfigurableEnvironment` implementations to be used.

Closes gh-10740
2017-11-02 23:22:16 -07:00
Henrik 7728f8fde6 Introduce configurable logging.pattern.dateformat
Add configurable logger dateformat support for Logback and Log4j2.

Closes gh-8516
2017-11-02 23:22:15 -07:00
Madhura Bhave d50fe8874f Add CF support for reactive actuators
Closes gh-10780
2017-11-02 18:00:55 -07:00
Phillip Webb f0327fbd0d Polish SizeAndTimeBasedRollingPolicy changes
Closes gh-6352
2017-11-02 15:21:14 -07:00
Vedran Pavic 991468b0ef Use SizeAndTimeBasedRollingPolicy file appender
Update the logback file appender to use `SizeAndTimeBasedRollingPolicy`
rather than `FixedWindowRollingPolicy`.

Add two new properties to improve log file configuration capabilities:

 - `logging.file.max-history` to limit the number of archive log files
    to keep.
 - `logging.file.max-size` to limit the log file size.

See gh-6352
2017-11-02 15:18:16 -07:00
Phillip Webb f440fc6d25 Formatting 2017-11-02 15:04:39 -07:00
Andy Wilkinson d148dff713 Upgrade to Spring Integration 5.0.0.RC1
Closes gh-7029
2017-11-02 20:30:02 +00:00
Andy Wilkinson 76df3fc496 Use explicit classpath: prefix for Flyway location
Flyway implicitly adds classpath: to locations without a prefix but
resource loader fails to find migratons on the classpath without the
prefix.

Add an explicit classpath: prefix so that both Flyway and the resource
loader used to check the locations can find the migration location.

See gh-10807
2017-11-02 18:54:04 +00:00
Jay Bryant 8f2653d4c7 Wrap documentation-overview.adoc at 90 characters and use title case
Closes gh-10889
2017-11-02 17:34:15 +00:00
Jay Bryant a1a30c6c13 Make editorial changes to howto.adoc
Closes gh-10854
2017-11-02 17:28:09 +00:00
Eddú Meléndez dcc6d8d6ff Align default of flyway.check-location with equivalent Liquibase prop
Closes gh-10807
2017-11-02 17:19:48 +00:00
Andy Wilkinson 8eae372433 Change handling of spring.config.location so it replaces defaults
Previously, spring.config.name was handled in such a way that its
value would replace the defaults. By constrast, spring.config.location
would add to the defaults.

Update the handling of spring.config.location so that it replaces the
defaults. This aligns its behaviour with spring.config.name. To allow
users to add additional locations a new property,
spring.config.additional-location, has been introduced. It behaves as
spring.config.location did prior to this change.

Closes gh-10595
2017-11-02 17:12:22 +00:00
Stephane Nicoll 9b8fefb0f4 Move micrometer export related keys under a common prefix #10858
Closes gh-10858
2017-11-02 16:55:34 +01:00
Andy Wilkinson 2ae4678b1e Drop support for Spring Mobile
Closes gh-10884
2017-11-02 14:39:46 +00:00
Andy Wilkinson e43d0adc4f Polish 2017-11-02 12:05:18 +00:00
Andy Wilkinson 9bbccb093a Rename Gradle plugin tests to work around Windows filename restrictions
The Gradle plugin integration tests find their Gradle build scripts
using a naming convention of ${ClassName}-${methodName}.gradle. This
convention led to two gradle scripts with filenames that were long
enough to causes problems on Windows.

This commit renames two test methods to reduce the length of their
names and, therefore, the names of their corresponding Gradle script
files.

Closes gh-10868
2017-11-02 11:51:09 +00:00
Stephane Nicoll e28b98c59d Remove multi config runApplication extension
Closes gh-10511
2017-11-02 12:04:22 +01:00
Vedran Pavic 3d44ef0872 Add support for configuring Spring Session cleanup cron
This commit adds support for configuring cron expression used for
expired session cleanup job in Redis and JDBC session stores.

Closes gh-10818
2017-11-02 11:56:11 +01:00
Stephane Nicoll 08272c92db Polish "Make editorial changes to appendix-configuration-metadata.adoc"
Closes gh-10874
2017-11-02 11:42:46 +01:00
Jay Bryant 78838fb2bb Make editorial changes to appendix-configuration-metadata.adoc
See gh-10874
2017-11-02 11:38:34 +01:00
Jay Bryant d5c879c186 Make editorial changes to appendix-auto-configuration-classes.adoc
Closes gh-10875
2017-11-02 11:23:03 +01:00
Jay Bryant 5f4b5417a3 Make editorial changes to appendix-test-auto-configuration.adoc
Closes gh-10876
2017-11-02 11:21:00 +01:00
Stephane Nicoll 85cf019835 Polish "Make editorial changes to appendix-executable-jar-format.adoc"
Closes gh-10878
2017-11-02 11:19:01 +01:00
Jay Bryant 59bc74614b Make editorial changes to appendix-executable-jar-format.adoc
See gh-10878
2017-11-02 11:18:37 +01:00
Jay Bryant 16cf0e7e38 Make editorial changes to appendix-dependency-versions.adoc
Closes gh-10879
2017-11-02 11:09:54 +01:00
Jay Bryant a0363f8f25 Add my name to the author list
I succumbed to a fit of vanity. ;)

Clsoes gh-10871
2017-11-02 11:06:10 +01:00
Johnny Lim 3fa7586c25 Remove System.out::println
Closes gh-10848
2017-11-02 11:04:46 +01:00
Phillip Webb c11e514767 Allow individual builds of invoker plugin projects
Clean `${revision}` variables when running invoker based integration
tests. Prior to this commit some `${revision}` placeholders remained
in the invoker local repository preventing the project from being built
outside of the reactor.

Fixes gh-10667
2017-11-01 23:14:52 -07:00
Phillip Webb c55b5d7111 Polish 2017-11-01 23:14:52 -07:00
Phillip Webb 44d8e09aac Polish endpoint parameter name discovery
Move logic from `ParameterNameMapper` into `ReflectiveOperationInvoker`
in order to reduce the surface area of the public API.

Also rename some classes for consistency.
2017-11-01 23:14:52 -07:00
Madhura Bhave 905e311ef2 Update javadoc 2017-11-01 18:20:14 -07:00
Madhura Bhave b2efef2eed Detect `springSecurityFilterChain` using name 2017-11-01 17:39:58 -07:00
Madhura Bhave 083cf50685 Change condition for adding @EnableWebSecurity
Instead of looking for the presence of `WebSecurityConfiguration`,
this commit checks for the presence of a `Filter` with the name
springSecurityFilterChain. This allows users to configure the Filter
without adding `WebSecurityConfiguration`, making it more flexible.
`springSecurityFilterChain` is somewhat of a contract in Spring Security
and it relies on the name being `springSecurityFilterChain`.

Closes gh-10849
2017-11-01 16:43:49 -07:00
Andy Wilkinson 4757ad63f1 Fix typos in Javadoc of assertable application context classes
Closes gh-10865
2017-11-01 14:49:23 +00:00
Andy Wilkinson fbfaddbd55 Wrap production-ready-features.adoc at 90 characters
Closes gh-10830
2017-11-01 11:06:46 +00:00
Jay Bryant c7dabfeca5 Make editorial changes to production-ready-features.adoc
See gh-10830
2017-11-01 10:56:15 +00:00
Andy Wilkinson cf4c490973 Add dependency managements for REST Docs' new webtestclient module
Closes gh-10819
2017-11-01 10:40:21 +00:00
Andy Wilkinson 8f4278c47f Update starters to route Log4j2 API into SLF4J by default
Closes gh-10847
2017-11-01 10:39:25 +00:00
Andy Wilkinson 2889ef99c7 Provide dependency management for log4j-to-slf4j
Closes gh-10860
2017-11-01 09:59:08 +00:00
Stephane Nicoll 74677629ff Remove handling of spring.git.properties
Closes gh-10857
2017-11-01 09:13:32 +01:00
Stephane Nicoll 8fe49eb9f7 Polish 2017-11-01 08:36:58 +01:00
Stephane Nicoll 9b6f0c83bf Add auto-configuration for DataSources
This commit automatically instruments all available data sources with
a configurable metric name. The instrumentation can be disabled in case
more control is needed.

Closes gh-10295
2017-11-01 08:34:37 +01:00
Stephane Nicoll 5208bd069d Fix typo 2017-11-01 08:34:28 +01:00
Stephane Nicoll 1739bfe077 Add missing title 2017-11-01 08:33:19 +01:00
Stephane Nicoll 5139881c4a Fix broken indent 2017-11-01 08:32:20 +01:00
Andy Wilkinson 28652209d6 Wrap spring-boot-features.adoc at 90 characters
Closes gh-10797
2017-10-31 19:05:18 +00:00
Jay Bryant 2e89fa7618 Make editorial changes to spring-boot-features.adoc
See gh-10797
2017-10-31 19:05:18 +00:00
Madhura Bhave 1e9fca0b76 Register a bean for OAuth2AuthorizedClientService
Closes gh-10837
2017-10-31 11:20:38 -07:00
Andy Wilkinson ab4f211ebf Wrap deployment.adoc at 90 characters
Closes gh-10833
2017-10-31 17:31:18 +00:00
Jay Bryant 9f6dadf242 Make editorial changes to deployment.adoc
See gh-10833
2017-10-31 17:20:55 +00:00
Andy Wilkinson 6f55b57855 Make discovery of additional config metdata more robust with Gradle
Previously, the configuration metadata annotation processor relied
upon an additional metadata file have been copied to an output
location. When building with Gradle, it's the processResources task
that performs this copy and there is no guarantee that it will have
run before the compileJava task unless an explicit dependency betwee
the two tasks has been configured. If a project is built using
Gradle's parallel build support, the likelihood of this required
ordering not occurring increases.

This commit updates the configuration metadata annotation processor to
consider a new annotation processor option when looking for the
additional config metadata file. The Gradle plugin has been updated
to provide this option as a compiler argument. The option is only
provided when the annotation processor is found on the compilation
classpath to avoid a warning from javac's annotation processing about
the use of an option that is not supported by any of the available
annotation processors.

Closes gh-9755
2017-10-31 14:31:51 +00:00
Andy Wilkinson 56fde15fcb Wrap build-tool-plugins.adoc at 90 characters
Closes gh-10835
2017-10-31 12:51:57 +00:00
Jay Bryant 2ecd116470 Edit build-tool-plugins.adoc
See gh-10835
2017-10-31 12:51:54 +00:00
Andy Wilkinson 68b2ee3a75 Wrap spring-boot-cli.adoc at 90 characters
Closes gh-10834
2017-10-31 12:39:20 +00:00
Jay Bryant f0901343bd Edit spring-boot-cli.adoc
See gh-10834
2017-10-31 12:39:05 +00:00
Andy Wilkinson cf64580c87 Upgrade to Spring Session Data MongoDB 2.0.0.RC1
Closes gh-10841
2017-10-31 09:28:38 +00:00
Andy Wilkinson b26bd21351 Upgrade to Spring Session 2.0.0.RC1
Closes gh-10817
2017-10-31 09:27:32 +00:00
Andy Wilkinson 2cce7c179f Upgrade to Spring Security 5.0.0.RC1
Closes gh-10705
2017-10-31 09:07:04 +00:00
Stephane Nicoll cd45d373f2 Fix kotlin maven plugin coordinates 2017-10-31 09:37:02 +01:00
Andy Wilkinson 93a67e6b4a Polish 2017-10-30 23:11:18 +00:00
Andy Wilkinson 48cc7bde30 Test the Gradle plugin against Gradle 4.3
Closes gh-10769
2017-10-30 20:47:37 +00:00
Andy Wilkinson f59fbe6f81 Update test to align with media type change in HATEOAS 0.24
See gh-10828
2017-10-30 17:01:25 +00:00
Brian Clozel 6bfbcc291a Add NettyServerCustomizer for Reactor Netty support
This commit adds a new customizer interface, `NettyServerCustomizer` for
customizing Reactor Netty server instances while they're being built.

Closes gh-10418
2017-10-30 17:50:47 +01:00
Andy Wilkinson ec470fbe59 Call Application and CommandLine Runners after ready event
Closes gh-7656
2017-10-30 16:41:18 +00:00
Andy Wilkinson 27f550b8eb Upgrade to Spring HATEAOS 0.24.0.RELEASE
Closes gh-10828
2017-10-30 16:06:44 +00:00
Andy Wilkinson 5df473a651 Add env-based configuration of TTL of Tomcat's static resource cache
Closes gh-9670
2017-10-30 16:05:43 +00:00
Stephane Nicoll 350377c3f2 Polish "Handle AbstractReactiveHealthIndicator.doHealthCheck exception"
Closes gh-10822
2017-10-30 17:03:49 +01:00
Nikolay Rybak 99c2fa699e Handle AbstractReactiveHealthIndicator.doHealthCheck exception
Exceptions inside AbstractReactiveHealthIndicator.doHealthCheck()
method, outside of Mono pipeline, could fail whole endpoint
response instead of returning `DOWN` status from indicator.

See gh-10822
2017-10-30 16:53:25 +01:00
Andy Wilkinson c50a0d855f Reflect process monitoring classes' move to spring-boot in docs
Closes gh-9998
2017-10-30 15:33:59 +00:00
dreis2211 ddb6176f88 Fix duplicated 'the' in Quartz scheduler doc section
Closes gh-10824
2017-10-30 16:32:14 +01:00
Stephane Nicoll 4dcc354f86 Merge branch '1.5.x' 2017-10-30 16:31:50 +01:00
Stephane Nicoll 654cee5a94 Polish 2017-10-30 16:26:04 +01:00
Stephane Nicoll 822ca00001 Merge branch '1.5.x' 2017-10-30 16:24:41 +01:00
Andy Wilkinson a276356328 Add auto-configuration for Spring Session's reactive support
Closes gh-9850
2017-10-30 15:19:41 +00:00
Andy Wilkinson bdab4aa97e Auto-configuration of reactive Spring Session 2017-10-30 15:19:41 +00:00
Stephane Nicoll 3d820adb4d Remove outdated Kotlin internal dependency management 2017-10-30 16:12:41 +01:00
Andy Wilkinson 5aa66305a8 Log warning when open-in-view is implicitly enabled for JPA or Neo4j
Closes gh-7107
2017-10-30 12:37:38 +00:00
Andy Wilkinson 95d8fe708a Upgrade to Spring REST Docs 2.0.0.RC1
Closes gh-10819
2017-10-30 12:02:51 +00:00
Andy Wilkinson 9932f3408c Start building against Spring Session snapshots
See gh-10817
2017-10-30 09:13:49 +00:00
Stephane Nicoll edefacf7ac Adapt to Spring Security change 2017-10-30 08:59:09 +01:00
Stephane Nicoll 5649e8c92a Polish 2017-10-29 16:53:33 +01:00
Stephane Nicoll e7cb0be6d8 Adapt to Spring Security change
This commit updates `WebFluxSecurityConfiguration` to look for a
`WebFilterChainProxy` rather than the default configuration that
`@EnableWebFluxSecurity` triggers. The latter is now package private.
2017-10-29 16:52:11 +01:00
Stephane Nicoll a688613fb4 Merge branch '1.5.x' 2017-10-29 14:11:26 +01:00
Stephane Nicoll 813a6966ef Merge branch '1.5.x' 2017-10-29 14:04:38 +01:00
Stephane Nicoll d408ce2d42 Merge branch '1.5.x' 2017-10-29 14:01:55 +01:00
Andy Wilkinson 657134a7d8 Wrap using-spring-boot.adoc at 90 characters
Closes gh-10765
2017-10-28 12:14:05 +01:00
Jay Bryant 87f1e4d90e Editorial changes to Using Spring Boot documentation
See gh-10765
2017-10-28 12:03:56 +01:00
Andy Wilkinson cc7da8bf38 Wrap getting-started.adoc at 90 characters
Closes gh-10763
2017-10-28 11:59:17 +01:00
Jay Bryant ce40de5cbb Editorial changes to Getting Started documentation
See gh-10763
2017-10-28 11:59:10 +01:00
Andy Wilkinson 3ef67004a3 Reinstate blank line to fix formatting of Getting Started section
See gh-10754
2017-10-28 11:57:47 +01:00
Andy Wilkinson 4e885460b4 Update to Spring Cloud Connectors 2.0.0.RELEASE
Closes gh-10758
2017-10-28 07:26:59 +01:00
Stephane Nicoll cba430818f Adapt to change in latest Spring Security snapshot 2017-10-28 08:02:39 +02:00
Stephane Nicoll a34ff67a1d Merge branch '1.5.x' 2017-10-28 07:58:45 +02:00
Stephane Nicoll ff3fe7a09f Merge branch '1.5.x' 2017-10-28 07:53:56 +02:00
Andy Wilkinson 708f917b3a Manage the version of Kotlin's kotlin-runtime module
See gh-10511
2017-10-27 22:48:52 +01:00
Andy Wilkinson 88f869bf06 Remove misleading setters from ConfigurationPropertiesBindingPostProcessor
Previously, ConfigurationPropertiesBindingPostProcessor had a number
of setter methods that implied that its configuration was more mutable
than it actually is and would only have an effect when called early
on in the post-processor's lifecycle.

This commit clarifies how the post-processor can be configured by
removing the misleading setters.

Closes gh-10598
2017-10-27 21:44:12 +01:00
Andy Wilkinson 85b1511085 Make configuration properties binding always uses current environment
Previously, configuration properties binding would only see changes to
the environment if there was no PropertySourcesPlaceholderConfigurer
in the context. This happened because
PropertySourcesPlaceholderConfigurer wrapped the Environment in a
PropertySource, effectively hiding it from the change tracking
performed by SpringConfigurationPropertySources.

This commit updates ConfigurationPropertiesBindingPostProcessor so
that it ignores the environment property source contained by
PropertySourcesPlaceholderConfigurer and uses a composite of
the PropertySourcesPlaceholderConfigurer's other property sources and
the Environment's PropertySources instead.
2017-10-27 21:29:09 +01:00
Andy Wilkinson ca4d7f7322 Test the Gradle plugin against Gradle 4.3-rc-4
See gh-10769
2017-10-27 20:30:50 +01:00
Andy Wilkinson de47eff0a4 Upgrade to Spring Data Kay SR1
Closes gh-10759
2017-10-27 19:57:15 +01:00
Andy Wilkinson 525b0a05c0 Upgrade to Rxjava2 2.1.6
Closes gh-10796
2017-10-27 19:56:46 +01:00
Andy Wilkinson 30578fa94f Align with new name for Spring Cloud Connectors' core module
See gh-10758
2017-10-27 17:17:39 +01:00
Stephane Nicoll caf4c4c6dd Make use of Batch's new API for accessing job parameters
Closes gh-10135
2017-10-27 14:53:25 +02:00
Stephane Nicoll cd6f11ba9b Upgrade to Spring Batch 4.0.0.M5
Closes gh-10792
2017-10-27 14:38:44 +02:00
Stephane Nicoll fd07bfd816 Polish "Add runApplication() Kotlin top level function"
Closes gh-10511
2017-10-27 14:22:15 +02:00
Sebastien Deleuze 605ede88f7 Specify kotlin-maven-plugin version for plugin management
See gh-9486
2017-10-27 14:18:24 +02:00
Sebastien Deleuze baffecdb14 Add runApplication() Kotlin top level function
Since Kotlin extensions do not apply to static
methods, this commit introduces a runApplication()
Kotlin top level function that acts as a Kotlin
shortcut for SpringApplication.run().

This shortcut avoids to require using non-idiomatic
code like SpringApplication.run(FooApplication::class.java)
and provides a runApplication<FooApplication>() alternative
(as well as an array of KClass based alternative when
multiple classes need to be passed as parameter).

It is possible to customize the application with the
following syntax:

runApplication<FooApplication>() {
    setEnvironment(environment)
}

See gh-10511
2017-10-27 14:18:24 +02:00
Sebastien Deleuze 65f5bfeb67 Add Kotlin main artifacts to dependency management
This commit adds Kotlin main artifacts to Spring
Boot dependency management and will be replaced by
Kotlin BOM when it will be available (see KT-18398).

See gh-9486
2017-10-27 14:18:24 +02:00
Andy Wilkinson 194e03c913 Polish mock verification and formatting
See gh-10773
2017-10-27 09:43:25 +01:00
Andy Wilkinson 37392c0ec8 Adapt to changed default login redirect URL in OAuth 2 Client support
See https://github.com/spring-projects/spring-security/issues/4687
See gh-10705
2017-10-27 09:19:57 +01:00
Andy Wilkinson ee2550ad7d Upgrade to Neo4j Ogm 3.0.1
Closes gh-10789
2017-10-27 09:03:43 +01:00
Andy Wilkinson 9f8c403d21 Upgrade to Hibernate Validator 6.0.4.Final
Closes gh-10788
2017-10-27 09:03:43 +01:00
Andy Wilkinson 20eb2f8644 Upgrade to Activemq 5.15.2
Closes gh-10787
2017-10-27 09:03:43 +01:00
Andy Wilkinson c3f68acd88 Upgrade to Byte Buddy 1.7.8
Closes gh-10786
2017-10-27 09:03:43 +01:00
Stephane Nicoll dbb1e222ab Initialize only an embedded datasource by default
This commit renames spring.datasource.initialize to
spring.datasource.initialization-mode and use the
DataSourceInitializationMode enum. By default, only an embedded
datasource is initialized.

Closes gh-10773
2017-10-27 09:50:37 +02:00
Stephane Nicoll b720c2141c Rename DatabaseInitialization to DataSourceInitialization
Closes gh-10779
2017-10-26 16:26:08 +02:00
Stephane Nicoll 555f51bfdb Fix checkstyle violation 2017-10-26 15:56:01 +02:00
Stephane Nicoll 00e0d61ee4 Use ParameterNameDiscoverer to detect operation's parameter names
Closes gh-10117
2017-10-26 15:13:00 +02:00
Stephane Nicoll 56afc25304 Allow to customize the path of a web endpoint
This commit introduces a endpoints.<id>.web.path generic property that
allows to customize the path of an endpoint. By default the path is the
same as the id of the endpoint.

Such customization does not apply for the CloudFoundry specific
endpoints.

Closes gh-10181
2017-10-26 14:36:14 +02:00
Stephane Nicoll 852ad093b2 Add support for @SendTo with kafka listener
This commit makes sure that the `replyTemplate` is set if a
KafkaTemplate is available in the context which effectively add support
for `@SendTo`.

Closes gh-10669
2017-10-25 18:04:08 +02:00
Stephane Nicoll 3412ee62d5 Make @Validated a hard requirement for JSR-303 validation
Closes gh-8024
2017-10-25 17:43:18 +02:00
Stephane Nicoll 97c1365e24 Remove Http401AuthenticationEntryPoint
Closes gh-10715
2017-10-25 14:03:14 +02:00
Stephane Nicoll b23f68b0d5 Merge branch '1.5.x' 2017-10-25 13:59:54 +02:00
Stephane Nicoll 7e438ca6c2 Merge branch '1.5.x' 2017-10-25 13:23:10 +02:00
Stephane Nicoll 78229bdbc7 Add ref to Okta Spring Boot starter
See gh-10064
2017-10-25 13:10:22 +02:00
Andy Wilkinson c3f3bba090 Test the Gradle plugin against Gradle 4.3-rc-3
See gh-10769
2017-10-25 08:59:50 +01:00
Stephane Nicoll e2d8fa92b4 Upgrade to Spring Framework 5.0.1.RELEASE
Closes gh-10587
2017-10-25 09:26:59 +02:00
Vedran Pavic ac10fa31cd Upgrade to Hazelcast 3.9
Closes gh-10764
2017-10-25 08:56:35 +02:00
Madhura Bhave 2e3187d1f6 Null values from yaml should be stored as empty string
When building a flattened map, the YamlProcessor from
Spring Framework, converts a null value to an empty string.
We want the null value to also keep track of its origin,
which is why this commit creates an `OriginTrackedValue`
for an empty string if the original value is null.

Fixes gh-10656
2017-10-24 14:57:22 -07:00
Madhura Bhave 182b6f0d29 Fix OAuth2 client tests as per upstream changes 2017-10-24 14:43:20 -07:00
Andy Wilkinson 66b55defa0 Adapt to password encoder changes in Spring Security
Closes gh-10762
2017-10-24 21:50:19 +01:00
Andy Wilkinson 2b426c30a6 Polish “Remove explicit type arguments”
Closes gh-10494
2017-10-24 14:44:26 +01:00
Johnny Lim 6168fae720 Remove explicit type arguments
See gh-10494
2017-10-24 14:44:20 +01:00
Andy Wilkinson a256602c7b Polish 2017-10-24 14:41:03 +01:00
Andy Wilkinson 7065a41711 Start building against snapshots for Spring Data Kay-SR1
See gh-10759
2017-10-24 12:06:55 +01:00
Andy Wilkinson f5f56ba6b2 Start building against 2.0 snapshots of Spring Cloud Connectors
See gh-10758
2017-10-24 12:04:09 +01:00
Jay Bryant 9a9850310c Editorial changes to overview section of the reference documentation
Closes gh-10754
2017-10-24 11:44:26 +01:00
Stephane Nicoll 76c4819053 Remove internal configuration properties validator cleanup
This commit removes the cleanup of the javax.validator.Validator that
can be created to validate @ConfigurationProperties binding as the
memory effect can no longer be reproduced.

Closes gh-10573
2017-10-24 10:05:52 +02:00