Commit Graph

24513 Commits

Author SHA1 Message Date
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
Stephane Nicoll
59a906bd58 Upgrade Java9 build to AspectJ 1.9.0.RC1 2017-10-24 09:32:34 +02:00
Andy Wilkinson
9dc575a59d Upgrade to Reactor Bismuth-SR3
Closes gh-10679
2017-10-23 19:26:52 +01:00
Stephane Nicoll
2b69e3c6d5 Fix metadata of spring.mustache.suffix
Closes gh-10752
2017-10-23 19:46:18 +02:00
Andy Wilkinson
67a8c3a838 Remove erroneous dependency management for reactor-extra
See 64939008
2017-10-23 17:30:54 +01:00
Andy Wilkinson
90ecb29667 Align with spring-security-jwt-jose being renamed to s-s-auth2-jose
Closes gh-10750
2017-10-23 15:58:37 +01:00
Andy Wilkinson
64939008fc Update to Reactor Bismuth-SR2
Closes gh-10679
2017-10-23 09:35:35 +01:00
Andy Wilkinson
616bac0d4f Upgrade to Reactor Bismuth-SR1
Closes gh-10679
2017-10-21 17:39:53 +01:00
Andy Wilkinson
b7ce3e00a1 Revert Reactor Bismuth-SR1 work arounds as it is now in Central
This commit reverts:

 - 362735c
 - a6a8195

Closes gh-10738
2017-10-21 11:35:31 +01:00
Andy Wilkinson
a6a8195ea8 Update CLI to work around Framework's early adoption of Bismuth-SR1 2017-10-21 09:57:08 +01:00
Andy Wilkinson
e561b969bf Remove dependency management for s-b-s-security-reactive
See gh-10704
2017-10-21 09:25:03 +01:00
Andy Wilkinson
34205d189a Upgrade to Jetty El 8.5.23
Closes gh-10737
2017-10-21 08:18:54 +01:00
Andy Wilkinson
8d861053ad Upgrade to Narayana 5.7.1.Final
Closes gh-10736
2017-10-21 08:18:54 +01:00
Andy Wilkinson
a86b7e3fdb Upgrade to Hibernate Validator 6.0.3.Final
Closes gh-10735
2017-10-21 08:18:53 +01:00
Andy Wilkinson
f47d158e97 Upgrade to Hibernate 5.2.12.Final
Closes gh-10734
2017-10-21 08:18:53 +01:00
Andy Wilkinson
a08ee4660b Upgrade to Derby 10.14.1.0
Closes gh-10733
2017-10-21 08:18:52 +01:00
Andy Wilkinson
680311cdc2 Upgrade to Rxjava 1.3.3
Closes gh-10732
2017-10-21 08:18:52 +01:00
Andy Wilkinson
a46284a7eb Upgrade to Commons Codec 1.11
Closes gh-10731
2017-10-21 08:18:51 +01:00
Andy Wilkinson
0bca0dd6d0 Merge branch '1.5.x' 2017-10-21 08:13:17 +01:00
Madhura Bhave
64b9451e2f Fix OAuth2 client tests following upstream changes 2017-10-20 11:57:13 -07:00
Stephane Nicoll
ef80772b92 Merge branch '1.5.x' 2017-10-20 17:31:44 +02:00
Andy Wilkinson
fa1eceda8d Merge branch '1.5.x' 2017-10-20 10:30:46 +01:00
Stephane Nicoll
61f16fe68f Merge branch '1.5.x' 2017-10-20 11:04:53 +02:00
Stephane Nicoll
a8e0b0dd4e Merge branch '1.5.x' 2017-10-20 08:42:17 +02:00
Johnny Lim
44ae148ecd Polish
Closes gh-10700
2017-10-20 08:15:57 +02:00
Stephane Nicoll
ef9b9d9a3e Polish
See gh-10671
2017-10-20 08:13:40 +02:00
Madhura Bhave
80b5da78a1 Fix test failures 2017-10-19 18:23:01 -07:00
Madhura Bhave
8600bd7294 Upgrade to Spring Security 5.0.0.BUILD-SNAPSHOT
Following some changes in the latest snapshot this includes:
- Some updates to oauth2 client auto-config
- Security auto-config no longer relies on GlobalAuthenticationConfigurerAdapter
- Remove reactive security starter

Closes gh-10704
2017-10-19 15:39:01 -07:00
Madhura Bhave
eb446d07d9 Default provider to registration-id if not present
Closes gh-10671
2017-10-19 13:03:57 -07:00
Madhura Bhave
df30d2fc10 Expose all endpoints under /cloudfoundryapplication
Regardless of whether the web endpoints have been enabled or not,
all endpoints for which beans are created need to be exposed in a
CF environment under /cloudfoundryapplication.

Closes gh-10673
2017-10-19 11:26:38 -07:00
Stephane Nicoll
c2f649df54 Add support for JPA mapping resources
Closes gh-10684
2017-10-19 17:35:38 +02:00
Stephane Nicoll
c4026806a6 Polish 2017-10-19 17:14:49 +02:00
Andy Wilkinson
ccca943e33 Add mainClassName to springBoot DSL in Gradle plugin
This commit introduces a new mainClassName property on the springBoot
DSL provided by the Gradle plugin. It can be used to explicitly
configure the mainClassName of the default bootRun, bootJar, and
bootWar tasks in a single place. Previously, the only mechanism
provided to do so was the mainClassName property that's only available
when the application plugin has been applied.

Closes gh-10623
2017-10-19 13:55:13 +01:00
Andy Wilkinson
5502aaafd1 Use mainClassName consistently across BootRun, BootJar, and BootWar
Previously, BootRun used the main property to configure the name of
the main class to run while BootJar and BootWar used the mainClass
property. Both were different to the application plugin which provides
a mainClassName project property.

This commit updates BootRun, BootJar, and BootWar to change the name
of the property used to configure the name of the main class to be
mainClassName. This makes the three Boot-specific tasks consistent
with each other, and also aligns them with Gradle's own application
plugin.

Closes gh-10622
2017-10-19 12:16:35 +01:00
Stephane Nicoll
02be86ddca Remove unnecessary exclusion on aopalliance
Closes gh-10691
2017-10-19 08:57:47 +02:00
Stephane Nicoll
b2839e2210 Merge branch '1.5.x' 2017-10-18 21:12:15 +02:00
Brian Clozel
14081c8557 Update to Bismuth-BUILD-SNAPSHOT
See gh-10679
2017-10-18 12:06:03 +02:00
Andy Wilkinson
a5a9fc5186 Upgrade to Snakeyaml 1.19
Closes gh-10678
2017-10-18 08:49:48 +01:00
Andy Wilkinson
a1843a378f Upgrade to Jooq 3.10.1
Closes gh-10677
2017-10-18 08:49:48 +01:00
Andy Wilkinson
5e70714b30 Upgrade to Solr 6.6.2
Closes gh-10676
2017-10-18 08:49:48 +01:00
Andy Wilkinson
ec2e3e53bb Upgrade to Sendgrid 4.1.1
Closes gh-10675
2017-10-18 08:49:48 +01:00
Andy Wilkinson
06939023e3 Upgrade to Jackson 2.9.2
Closes gh-10674
2017-10-18 08:49:48 +01:00
dreis2211
ed213ec462 Polish HttpHeaderInterceptor
Closes gh-10670
2017-10-18 08:57:09 +02:00
Andy Wilkinson
77cbab794e Make TomcatEmbeddedWebappClassLoader parallel capable
Closes gh-10477
2017-10-17 16:04:27 +01:00
Andy Wilkinson
027c5a0e35 Remove usage of Mockito's internals
Previously, we relied on Mockito's internals to bypass any Spring AOP
proxy during verification of a spy. Thanks to a new API in Mockito,
we can replace the use of Mockito's internals with a
VerificationStartedListener. This listener changes Mockito's view of
the mock to be the ultimate target of the AOP proxy, i.e. to be the
actual Mockito-created spy, allowing Mockito's verification of the
spy to proceed successfully.

This above-described change will mean that we require a very
up-to-date version of Mockito so the tests that verify our
compatibility with 2.5 have been removed as we will no longer support
it when using @MockBean or @SpyBean.

Lastly, two tests have been updated to replace their usage of the
internal MockUtil class with the equivalent public API calls.

Closes gh-10352
2017-10-17 15:56:28 +01:00
Andy Wilkinson
ec4b80443f Upgrade to Mockito 2.11.0
Closes gh-10668
2017-10-17 15:56:16 +01:00
Andy Wilkinson
688da652ac Polish 2017-10-17 15:41:55 +01:00
Andy Wilkinson
70f6c784c7 Upgrade to Spring Web Services 3.0.0.RC1
Closes gh-10666
2017-10-17 15:41:55 +01:00
Stephane Nicoll
dd90f071c6 Bump ASM version to be Java 8+ compatible
Closes gh-10647
2017-10-17 16:29:06 +02:00
Johnny Lim
caa6e18be1 Remove "Securing the H2 console" section
Closes gh-10657
2017-10-17 15:44:13 +02:00
Stephane Nicoll
2eba1c5f62 Polish "Use Assert.state() with Supplier where possible"
Closes gh-10658
2017-10-17 15:36:51 +02:00
dreis2211
3b71393e0a Use Assert.state() with Supplier where possible
See gh-10658
2017-10-17 15:35:59 +02:00
Johnny Lim
5aa32b3d0f Polish
Closes gh-10636
2017-10-17 15:29:13 +02:00
Andy Wilkinson
0af4536316 Ensure media types are used consistently across endpoint mappings
Previously, the media types that are consumed and produced by
endpoints were configured in the web stack-specific configuration.
Furthermore, these configured media types were not used for the
discovery "endpoint" that links to all the available endpoints.

This commit introduces EndpointMediaTypes that is configred in a
single, central location and then used to configure the consumed and
produced media types for endpoints exposed via WebFlux, Web MVC, and
Jersey as well as the discovery "endpoint" provided by each.

Closes gh-10659
2017-10-17 12:47:45 +01:00
Stephane Nicoll
22de4303c5 Polish "When pool autocommit is disabled, inform Hibernate"
Closes gh-9737
2017-10-17 11:39:44 +02:00
Craig Andrews
d0e70e90de When pool autocommit is disabled, inform Hibernate
Starting with Hibernate 5.2.10, the JPA property
`hibernate.connection.provider_disables_autocommit` should be set to true
when the datasource has autocommit disabled in order to improve
performance.

See gh-9737
2017-10-17 09:19:47 +02:00
James McShane
3237b05785 Update docs for OpenShift
The current documentation references mechanisms for OpenShift 2, which
has been changed significantly with the latest releases, specifically the
OpenShift 3 release.

Closes gh-10609
2017-10-17 09:16:15 +02:00
Johnny Lim
e234fb5d19 Fix broken links
Closes gh-10616
2017-10-17 09:11:22 +02:00
Vedran Pavic
12233672db Use properties in Security OAuth2 Client doc config example
Closes gh-10615
2017-10-17 09:07:59 +02:00
Vedran Pavic
d705696bdd Fix Security OAuth2 Client documentation
This commit fixes incorrect section level and sample configuration properties.

See gh-10615
2017-10-17 09:07:43 +02:00
Madhura Bhave
d307eba0a3 Add property to configure base-path for web endpoints.
Also, move properties corresponding to management server under
`management.server.*`.

Closes gh-10230
2017-10-16 15:17:55 -07:00
Brian Clozel
68db43cf44 Support error conventions in Spring WebFlux
This commit adds support for Spring Boot error conventions with WebFlux.
The Spring MVC support for that is based on an `Controller` that's
mapped on a specific `"/error"` path and configured as an error page in
the Servlet container. With WebFlux, this support leverages a
`WebExceptionHandler`, which catches exceptions flowing through the
reactive pipeline and handles them.

The `DefaultErrorWebExceptionHandler` supports the following:
* return a JSON error response to machine clients
* return error HTML views (templates, static or default HTML view)

One can customize the error information by contributing an
`ErrorAttributes` bean to the application context.

Spring Boot provides an `ErrorWebExceptionHandler` marker interface and a
base implementation that provides high level constructs to handle
errors, based on the Spring WebFlux functional flavor.
The error handling logic can be completely changed by providing a custom
`RouterFunction` there.

Fixes gh-8625
2017-10-16 21:55:05 +02:00
Andy Wilkinson
f8602817af Merge branch '1.5.x' 2017-10-13 16:30:17 +01:00
Andy Wilkinson
63b7591031 Add another dependency required for javadoc generation with Java 9
See gh-10515
2017-10-13 15:11:17 +01:00
Andy Wilkinson
c3d10a811e Add dependencies required for javadoc generation with Java 9
See gh-10515
2017-10-13 14:36:41 +01:00
Andy Wilkinson
44acef2ae2 Merge branch '1.5.x' 2017-10-13 12:43:00 +01:00
Andy Wilkinson
be09f1c256 Merge branch '1.5.x' 2017-10-13 12:27:51 +01:00
Brian Clozel
81d1b3c6ee Build against Spring Framework 5.0.1.BUILD-SNAPSHOT
See gh-10587
2017-10-12 15:52:11 +02:00
Andy Wilkinson
273defdb1f Merge branch '1.5.x' 2017-10-12 14:40:02 +01:00
Johnny Lim
a51765d0f4 Fix broken documentation links
Update links following recent project restructure.

Closes gh-10601
2017-10-11 13:30:35 -07:00
Phillip Webb
97afe8e938 Fix package tangle in properties source
Update `SpringConfigurationPropertySource` so that it no longer
references types in `org.springframework.boot.env`.

Closes gh-10592
2017-10-11 11:24:46 -07:00
Phillip Webb
f48550aa44 Fix package tangle in binder
Update the `BinderConversionService` so that it no longer references
classes from `org.springframework.boot.context.properties.bind`.

See gh-10592
2017-10-11 11:23:14 -07:00
Andy Wilkinson
1bd44d89d6 Test metrics endpoint using tag available on Java 9 as well as 8
See gh-10524
2017-10-11 16:50:23 +01:00
Andy Wilkinson
bcfb1d17b1 Merge branch '1.5.x' 2017-10-11 16:19:25 +01:00
Spencer Gibb
ce2058fa97 Change @ConditionalOnClass from Servlet to Flux
Update `ReactiveManagementContextAutoConfiguration` to check for a
`Flux` class rather than `Servlet`.

Closes gh-10590
2017-10-10 21:45:24 -07:00
Phillip Webb
f337323819 Allow recursive binding in Maps
Update `Binder` so that Maps containing references to themselves may
be bound. The existing stack-overflow protection (required when binding
a bean to a non enumerable source) now only applies to bean properties.

Fixes gh-9801
2017-10-10 21:41:53 -07:00
Madhura Bhave
3ec3b64d45 Guard against binding non-instantiable types
Update `JavaBeanBinder` so that null instances that are non-instantiable
are not bound.

Fixes gh-10131
2017-10-10 17:55:35 -07:00
Madhura Bhave
b7c37c2807 Expose webServer from ReactiveWebServerApplicationContext
Closes gh-9746
2017-10-10 14:51:11 -07:00
Phillip Webb
22a6ee03eb Polish MetricsEndpoint
See gh-10535
2017-10-10 13:58:10 -07:00
Jon Schneider
37975836f0 Support composite registries in MetricsEndpoint
Update `MetricsEndpoint` to deal with `CompositeMeterRegistry`
instances.

Closes gh-10535
2017-10-10 13:57:51 -07:00
Phillip Webb
b3555fa5c5 Fix checkstyle violation in properties file
See gh-10565
2017-10-10 13:48:33 -07:00
dreis2211
a76005e8d9 Remove concatenations with empty string
Closes gh-10512
2017-10-10 12:44:33 -07:00
Thiago Hirata
85e71f2373 Update OriginTrackedPropertiesLoader to ISO 8859-1
Align `OriginTrackedPropertiesLoader` with Java default property loading
by using ISO 8859-1 character encoding.

Closes gh-10565
2017-10-10 12:31:43 -07:00
Phillip Webb
8e030d4769 Upgrade to Spring Session 2.0.0.M5
Closes gh-10326
2017-10-10 12:19:25 -07:00
Phillip Webb
1c7177d24a Upgrade to Spring Security 5.0.0.M5
Closes gh-10327
2017-10-10 12:17:13 -07:00
Phillip Webb
748e0779b6 Update copyright year for changed files 2017-10-10 11:56:13 -07:00
Phillip Webb
d62d829c19 Polish 2017-10-10 11:55:47 -07:00
Phillip Webb
0118653878 Upgrade to Sqlite Jdbc 3.20.1
Closes gh-10585
2017-10-10 11:03:43 -07:00
Phillip Webb
80c85568fa Upgrade to Spring Ldap 2.3.2.RELEASE
Closes gh-10584
2017-10-10 11:03:42 -07:00
Phillip Webb
6f159d2ee7 Upgrade to Javassist 3.22.0-CR2
Closes gh-10583
2017-10-10 11:03:41 -07:00
Phillip Webb
d1ea57f496 Upgrade to Johnzon Jsonb 1.1.4
Closes gh-10582
2017-10-10 11:03:41 -07:00
Phillip Webb
34f290afbb Upgrade to Httpcore 4.4.8
Closes gh-10581
2017-10-10 11:03:40 -07:00
Phillip Webb
702e831fcd Upgrade to Activemq 5.15.1
Closes gh-10580
2017-10-10 11:03:39 -07:00
Phillip Webb
96287173f9 Upgrade to Byte Buddy 1.7.6
Closes gh-10579
2017-10-10 11:03:38 -07:00
Phillip Webb
7404221678 Upgrade to Jest 5.3.3
Closes gh-10578
2017-10-10 11:03:37 -07:00
Phillip Webb
e3d864670f Upgrade to Rest Assured 3.0.5
Closes gh-10577
2017-10-10 11:03:37 -07:00
Phillip Webb
0be541e0fb Upgrade to Rxjava2 2.1.5
Closes gh-10576
2017-10-10 11:03:36 -07:00
Phillip Webb
e985998256 Upgrade to Unboundid Ldapsdk 4.0.1
Closes gh-10575
2017-10-10 11:03:35 -07:00
Phillip Webb
e16807e2f6 Upgrade to Mssql Jdbc 6.2.2.jre8
Closes gh-10574
2017-10-10 11:03:35 -07:00
Phillip Webb
02ba788c3f Upgrade to Couchbase Client 2.5.1
Closes gh-10573
2017-10-10 11:03:34 -07:00
Madhura Bhave
a06ec4a877 Mongo Uri overrides host and port
Fixes gh-4017
2017-10-10 09:23:49 -07:00
Phillip Webb
0cc33d5c7c Revert class name change
This reverts commit de7b624643.
2017-10-08 17:09:12 -07:00
Phillip Webb
0be119eadd Don't deploy spring-boot-test-support
Fixes gh-10518
2017-10-08 16:57:58 -07:00
Phillip Webb
ae7e9a2cdf Polish 2017-10-08 16:39:38 -07:00
Phillip Webb
de7b624643 Polish 2017-10-08 16:16:06 -07:00
Phillip Webb
a9263998a1 Support custom WebTestClient timeouts
Update @AutoConfigureWebTestClient to support a custom `timeout`
option.

See gh-10555
2017-10-08 16:16:06 -07:00
Phillip Webb
8be7d3cab4 Polish 2017-10-08 08:08:07 -07:00
Stephane Nicoll
a662b779b3 Fix build failure
Spring Session JDBC no longer providers a JdbcTemplate so our tests
need to make sure to include our own auto-configuration for it.
2017-10-07 09:45:12 +02:00
Stephane Nicoll
fc829951f7 Upgrade to Micrometer 1.0.0-rc.2
Closes gh-10541
2017-10-07 08:57:00 +02:00
Madhura Bhave
0402223fd0 Replace CommonOAuth2Provider
Closes gh-10543
2017-10-06 11:58:24 -07:00
Madhura Bhave
3ced8412b5 Replace AuthorizationGrantType & ClientAuthenticationMethod
Closes gh-10506
2017-10-06 09:34:13 -07:00
Daniel Fernández
e69a93bf47 Minor documentation improvements at ThymeleafProperties 2017-10-06 09:12:28 +02:00
Daniel Fernández
6a52a1a6a0 Added configuration test for spring.thymeleaf.reactive.max-chunk-size 2017-10-06 09:12:28 +02:00
Daniel Fernández
7de6472477 Added configuration parameters at ThymeleafProperties for "fullModeViewNames" and "chunkedModeViewNames" 2017-10-06 09:12:28 +02:00
Phillip Webb
facf16ceb8 Re-order modules so that spring--boot-cli is later
Update the module order so that the CLI is built after starters.

See gh-9316
2017-10-05 18:17:25 -07:00
Phillip Webb
3c97401a86 Polish 2017-10-05 17:58:18 -07:00
Phillip Webb
526fc1f351 Fix imports following upstream change 2017-10-05 17:57:31 -07:00
Jon Schneider
bc05352290 Improve new metrics endpoint
- New repeatable tag query parameter to refine a query by one or more
  tag key/value pairs.
- Selecting a metric by name (and optionally a set of tags) reports
  statistics that are the sum of the statistics on all time series
  containing the name (and tags).

Closes gh-10524
2017-10-05 16:49:30 +01:00
Jon Schneider
e2453a17c7 Add auto-configuration for exporting metrics to StatsD
Closes gh-10522
2017-10-05 16:49:19 +01:00
Jon Schneider
ff636b58e1 Make the Graphite export protocol configurable
Closes gh-10523
2017-10-05 16:48:54 +01:00
Andy Wilkinson
7fc272df6e Start building against Micrometer snapshots for 1.0.0-rc.2 2017-10-05 16:48:31 +01:00
Andy Wilkinson
6323dc4e21 Reduce logging that is produced when building Gradle plugin
Travis is terminating builds as they are producing too much logging.
A major contributor to the volume of logging is the Gradle plugin's
build. This commit switches off debug logging for the build and
enables test event logging. This considerably reduces the volume of
logging that is produced while still providing some insight into the
build's tests.
2017-10-05 13:39:49 +01:00
Andy Wilkinson
508aac084e Rename all Micrometer Clock beans: clock -> micrometerClock
Closes gh-10436
2017-10-05 11:01:20 +01:00
Andy Wilkinson
2bb54f16fb Polish 2017-10-05 10:54:26 +01:00
Andy Wilkinson
41fc023a67 Remove unnecessary override of helper plugin's version 2017-10-05 10:52:52 +01:00
Stephane Nicoll
ba52ebf155 Upgrade to Spring AMQP 2.0.0.RELEASE
Closes gh-7053
2017-10-05 10:43:21 +02:00
Phillip Webb
da0c4f5520 Increase endpoint integration test timeouts
Allow longer for test responses to be returned.

See gh-9316
2017-10-04 20:18:53 -07:00
Phillip Webb
4df84c53bc Upgrade Maven plugins
Upgrade the Maven plugins used in the builds.

See gh-9316
2017-10-04 16:34:43 -07:00
Phillip Webb
3476f7b8a4 Add debug logging switches to Gradle launch
Update launched Gradle options to include debug logging.

See gh-9316
2017-10-04 16:34:39 -07:00
Phillip Webb
d588bf7506 Fix odd Java parsing issues
Update `LoggingMainClassTimeWarningListener` to import individual
`Layout` inner classes. This fixes an odd javac parse issue that
otherwise occurs.

See gh-9316
2017-10-04 16:34:39 -07:00
Phillip Webb
c6f930b49e Fix Gradle to use flattened POM file
Update the Gradle plugin to use version information from the
flattened POM.xml files.

See gh-9316
2017-10-04 16:34:39 -07:00
Phillip Webb
b87f9c11f1 Fix POMs for the updated build/release process
Fix POMs following project relocations and apply CI friendly Maven
conventions.

See gh-9316
2017-10-04 16:34:38 -07:00
Phillip Webb
0ba4830b4f Relocate projects to spring-boot-project
Move projects to better reflect the way that Spring Boot is released.

The following projects are under `spring-boot-project`:

  - `spring-boot`
  - `spring-boot-autoconfigure`
  - `spring-boot-tools`
  - `spring-boot-starters`
  - `spring-boot-actuator`
  - `spring-boot-actuator-autoconfigure`
  - `spring-boot-test`
  - `spring-boot-test-autoconfigure`
  - `spring-boot-devtools`
  - `spring-boot-cli`
  - `spring-boot-docs`

See gh-9316
2017-10-04 16:34:23 -07:00