Commit Graph

308 Commits

Author SHA1 Message Date
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