Commit Graph

328 Commits (b3112379062cc75e2507070e9f6e621bbb23a6e0)

Author SHA1 Message Date
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
7 years ago
Stephane Nicoll 5208bd069d Fix typo 7 years ago
Stephane Nicoll 1739bfe077 Add missing title 7 years ago
Stephane Nicoll 5139881c4a Fix broken indent 7 years ago
Andy Wilkinson 28652209d6 Wrap spring-boot-features.adoc at 90 characters
Closes gh-10797
7 years ago
Jay Bryant 2e89fa7618 Make editorial changes to spring-boot-features.adoc
See gh-10797
7 years ago
Madhura Bhave 1e9fca0b76 Register a bean for OAuth2AuthorizedClientService
Closes gh-10837
7 years ago
Andy Wilkinson ab4f211ebf Wrap deployment.adoc at 90 characters
Closes gh-10833
7 years ago
Jay Bryant 9f6dadf242 Make editorial changes to deployment.adoc
See gh-10833
7 years ago
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
7 years ago
Andy Wilkinson 56fde15fcb Wrap build-tool-plugins.adoc at 90 characters
Closes gh-10835
7 years ago
Jay Bryant 2ecd116470 Edit build-tool-plugins.adoc
See gh-10835
7 years ago
Andy Wilkinson 68b2ee3a75 Wrap spring-boot-cli.adoc at 90 characters
Closes gh-10834
7 years ago
Jay Bryant f0901343bd Edit spring-boot-cli.adoc
See gh-10834
7 years ago
Andy Wilkinson cf64580c87 Upgrade to Spring Session Data MongoDB 2.0.0.RC1
Closes gh-10841
7 years ago
Andy Wilkinson b26bd21351 Upgrade to Spring Session 2.0.0.RC1
Closes gh-10817
7 years ago
Andy Wilkinson 2cce7c179f Upgrade to Spring Security 5.0.0.RC1
Closes gh-10705
7 years ago
Stephane Nicoll cd45d373f2 Fix kotlin maven plugin coordinates 7 years ago
Andy Wilkinson 93a67e6b4a Polish 7 years ago
Andy Wilkinson 48cc7bde30 Test the Gradle plugin against Gradle 4.3
Closes gh-10769
7 years ago
Andy Wilkinson f59fbe6f81 Update test to align with media type change in HATEOAS 0.24
See gh-10828
7 years ago
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
7 years ago
Andy Wilkinson ec470fbe59 Call Application and CommandLine Runners after ready event
Closes gh-7656
7 years ago
Andy Wilkinson 27f550b8eb Upgrade to Spring HATEAOS 0.24.0.RELEASE
Closes gh-10828
7 years ago
Andy Wilkinson 5df473a651 Add env-based configuration of TTL of Tomcat's static resource cache
Closes gh-9670
7 years ago
Stephane Nicoll 350377c3f2 Polish "Handle AbstractReactiveHealthIndicator.doHealthCheck exception"
Closes gh-10822
7 years ago
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
7 years ago
Andy Wilkinson c50a0d855f Reflect process monitoring classes' move to spring-boot in docs
Closes gh-9998
7 years ago
dreis2211 ddb6176f88 Fix duplicated 'the' in Quartz scheduler doc section
Closes gh-10824
7 years ago
Stephane Nicoll 4dcc354f86 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 654cee5a94 Polish 7 years ago
Stephane Nicoll 822ca00001 Merge branch '1.5.x' 7 years ago
Andy Wilkinson a276356328 Add auto-configuration for Spring Session's reactive support
Closes gh-9850
7 years ago
Andy Wilkinson bdab4aa97e Auto-configuration of reactive Spring Session 7 years ago
Stephane Nicoll 3d820adb4d Remove outdated Kotlin internal dependency management 7 years ago
Andy Wilkinson 5aa66305a8 Log warning when open-in-view is implicitly enabled for JPA or Neo4j
Closes gh-7107
7 years ago
Andy Wilkinson 95d8fe708a Upgrade to Spring REST Docs 2.0.0.RC1
Closes gh-10819
7 years ago
Andy Wilkinson 9932f3408c Start building against Spring Session snapshots
See gh-10817
7 years ago
Stephane Nicoll edefacf7ac Adapt to Spring Security change 7 years ago
Stephane Nicoll 5649e8c92a Polish 7 years ago
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.
7 years ago
Stephane Nicoll a688613fb4 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 813a6966ef Merge branch '1.5.x' 7 years ago
Stephane Nicoll d408ce2d42 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 657134a7d8 Wrap using-spring-boot.adoc at 90 characters
Closes gh-10765
7 years ago
Jay Bryant 87f1e4d90e Editorial changes to Using Spring Boot documentation
See gh-10765
7 years ago
Andy Wilkinson cc7da8bf38 Wrap getting-started.adoc at 90 characters
Closes gh-10763
7 years ago
Jay Bryant ce40de5cbb Editorial changes to Getting Started documentation
See gh-10763
7 years ago
Andy Wilkinson 3ef67004a3 Reinstate blank line to fix formatting of Getting Started section
See gh-10754
7 years ago
Andy Wilkinson 4e885460b4 Update to Spring Cloud Connectors 2.0.0.RELEASE
Closes gh-10758
7 years ago
Stephane Nicoll cba430818f Adapt to change in latest Spring Security snapshot 7 years ago
Stephane Nicoll a34ff67a1d Merge branch '1.5.x' 7 years ago
Stephane Nicoll ff3fe7a09f Merge branch '1.5.x' 7 years ago
Andy Wilkinson 708f917b3a Manage the version of Kotlin's kotlin-runtime module
See gh-10511
7 years ago
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
7 years ago
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.
7 years ago
Andy Wilkinson ca4d7f7322 Test the Gradle plugin against Gradle 4.3-rc-4
See gh-10769
7 years ago
Andy Wilkinson de47eff0a4 Upgrade to Spring Data Kay SR1
Closes gh-10759
7 years ago
Andy Wilkinson 525b0a05c0 Upgrade to Rxjava2 2.1.6
Closes gh-10796
7 years ago
Andy Wilkinson 30578fa94f Align with new name for Spring Cloud Connectors' core module
See gh-10758
7 years ago
Stephane Nicoll caf4c4c6dd Make use of Batch's new API for accessing job parameters
Closes gh-10135
7 years ago
Stephane Nicoll cd6f11ba9b Upgrade to Spring Batch 4.0.0.M5
Closes gh-10792
7 years ago
Stephane Nicoll fd07bfd816 Polish "Add runApplication() Kotlin top level function"
Closes gh-10511
7 years ago
Sebastien Deleuze 605ede88f7 Specify kotlin-maven-plugin version for plugin management
See gh-9486
7 years ago
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
7 years ago
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
7 years ago
Andy Wilkinson 194e03c913 Polish mock verification and formatting
See gh-10773
7 years ago
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
7 years ago
Andy Wilkinson ee2550ad7d Upgrade to Neo4j Ogm 3.0.1
Closes gh-10789
7 years ago
Andy Wilkinson 9f8c403d21 Upgrade to Hibernate Validator 6.0.4.Final
Closes gh-10788
7 years ago
Andy Wilkinson 20eb2f8644 Upgrade to Activemq 5.15.2
Closes gh-10787
7 years ago
Andy Wilkinson c3f68acd88 Upgrade to Byte Buddy 1.7.8
Closes gh-10786
7 years ago
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
7 years ago
Stephane Nicoll b720c2141c Rename DatabaseInitialization to DataSourceInitialization
Closes gh-10779
7 years ago
Stephane Nicoll 555f51bfdb Fix checkstyle violation 7 years ago
Stephane Nicoll 00e0d61ee4 Use ParameterNameDiscoverer to detect operation's parameter names
Closes gh-10117
7 years ago
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
7 years ago
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
7 years ago
Stephane Nicoll 3412ee62d5 Make @Validated a hard requirement for JSR-303 validation
Closes gh-8024
7 years ago
Stephane Nicoll 97c1365e24 Remove Http401AuthenticationEntryPoint
Closes gh-10715
7 years ago
Stephane Nicoll b23f68b0d5 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 7e438ca6c2 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 78229bdbc7 Add ref to Okta Spring Boot starter
See gh-10064
7 years ago
Andy Wilkinson c3f3bba090 Test the Gradle plugin against Gradle 4.3-rc-3
See gh-10769
7 years ago
Stephane Nicoll e2d8fa92b4 Upgrade to Spring Framework 5.0.1.RELEASE
Closes gh-10587
7 years ago
Vedran Pavic ac10fa31cd Upgrade to Hazelcast 3.9
Closes gh-10764
7 years ago
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
7 years ago
Madhura Bhave 182b6f0d29 Fix OAuth2 client tests as per upstream changes 7 years ago
Andy Wilkinson 66b55defa0 Adapt to password encoder changes in Spring Security
Closes gh-10762
7 years ago
Andy Wilkinson 2b426c30a6 Polish “Remove explicit type arguments”
Closes gh-10494
7 years ago
Johnny Lim 6168fae720 Remove explicit type arguments
See gh-10494
7 years ago
Andy Wilkinson a256602c7b Polish 7 years ago
Andy Wilkinson 7065a41711 Start building against snapshots for Spring Data Kay-SR1
See gh-10759
7 years ago
Andy Wilkinson f5f56ba6b2 Start building against 2.0 snapshots of Spring Cloud Connectors
See gh-10758
7 years ago
Jay Bryant 9a9850310c Editorial changes to overview section of the reference documentation
Closes gh-10754
7 years ago
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
7 years ago
Stephane Nicoll 59a906bd58 Upgrade Java9 build to AspectJ 1.9.0.RC1 7 years ago
Andy Wilkinson 9dc575a59d Upgrade to Reactor Bismuth-SR3
Closes gh-10679
7 years ago
Stephane Nicoll 2b69e3c6d5 Fix metadata of spring.mustache.suffix
Closes gh-10752
7 years ago
Andy Wilkinson 67a8c3a838 Remove erroneous dependency management for reactor-extra
See 64939008
7 years ago
Andy Wilkinson 90ecb29667 Align with spring-security-jwt-jose being renamed to s-s-auth2-jose
Closes gh-10750
7 years ago
Andy Wilkinson 64939008fc Update to Reactor Bismuth-SR2
Closes gh-10679
7 years ago
Andy Wilkinson 616bac0d4f Upgrade to Reactor Bismuth-SR1
Closes gh-10679
7 years ago
Andy Wilkinson b7ce3e00a1 Revert Reactor Bismuth-SR1 work arounds as it is now in Central
This commit reverts:

 - 362735c
 - a6a8195

Closes gh-10738
7 years ago
Andy Wilkinson a6a8195ea8 Update CLI to work around Framework's early adoption of Bismuth-SR1 7 years ago
Andy Wilkinson e561b969bf Remove dependency management for s-b-s-security-reactive
See gh-10704
7 years ago
Andy Wilkinson 34205d189a Upgrade to Jetty El 8.5.23
Closes gh-10737
7 years ago
Andy Wilkinson 8d861053ad Upgrade to Narayana 5.7.1.Final
Closes gh-10736
7 years ago
Andy Wilkinson a86b7e3fdb Upgrade to Hibernate Validator 6.0.3.Final
Closes gh-10735
7 years ago
Andy Wilkinson f47d158e97 Upgrade to Hibernate 5.2.12.Final
Closes gh-10734
7 years ago
Andy Wilkinson a08ee4660b Upgrade to Derby 10.14.1.0
Closes gh-10733
7 years ago
Andy Wilkinson 680311cdc2 Upgrade to Rxjava 1.3.3
Closes gh-10732
7 years ago
Andy Wilkinson a46284a7eb Upgrade to Commons Codec 1.11
Closes gh-10731
7 years ago
Andy Wilkinson 0bca0dd6d0 Merge branch '1.5.x' 7 years ago
Madhura Bhave 64b9451e2f Fix OAuth2 client tests following upstream changes 7 years ago
Stephane Nicoll ef80772b92 Merge branch '1.5.x' 7 years ago
Andy Wilkinson fa1eceda8d Merge branch '1.5.x' 7 years ago
Stephane Nicoll 61f16fe68f Merge branch '1.5.x' 7 years ago
Stephane Nicoll a8e0b0dd4e Merge branch '1.5.x' 7 years ago
Johnny Lim 44ae148ecd Polish
Closes gh-10700
7 years ago
Stephane Nicoll ef9b9d9a3e Polish
See gh-10671
7 years ago
Madhura Bhave 80b5da78a1 Fix test failures 7 years ago
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
7 years ago
Madhura Bhave eb446d07d9 Default provider to registration-id if not present
Closes gh-10671
7 years ago
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
7 years ago
Stephane Nicoll c2f649df54 Add support for JPA mapping resources
Closes gh-10684
7 years ago
Stephane Nicoll c4026806a6 Polish 7 years ago
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
7 years ago
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
7 years ago
Stephane Nicoll 02be86ddca Remove unnecessary exclusion on aopalliance
Closes gh-10691
7 years ago
Stephane Nicoll b2839e2210 Merge branch '1.5.x' 7 years ago
Brian Clozel 14081c8557 Update to Bismuth-BUILD-SNAPSHOT
See gh-10679
7 years ago
Andy Wilkinson a5a9fc5186 Upgrade to Snakeyaml 1.19
Closes gh-10678
7 years ago
Andy Wilkinson a1843a378f Upgrade to Jooq 3.10.1
Closes gh-10677
7 years ago
Andy Wilkinson 5e70714b30 Upgrade to Solr 6.6.2
Closes gh-10676
7 years ago
Andy Wilkinson ec2e3e53bb Upgrade to Sendgrid 4.1.1
Closes gh-10675
7 years ago
Andy Wilkinson 06939023e3 Upgrade to Jackson 2.9.2
Closes gh-10674
7 years ago
dreis2211 ed213ec462 Polish HttpHeaderInterceptor
Closes gh-10670
7 years ago
Andy Wilkinson 77cbab794e Make TomcatEmbeddedWebappClassLoader parallel capable
Closes gh-10477
7 years ago
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
7 years ago
Andy Wilkinson ec4b80443f Upgrade to Mockito 2.11.0
Closes gh-10668
7 years ago
Andy Wilkinson 688da652ac Polish 7 years ago
Andy Wilkinson 70f6c784c7 Upgrade to Spring Web Services 3.0.0.RC1
Closes gh-10666
7 years ago
Stephane Nicoll dd90f071c6 Bump ASM version to be Java 8+ compatible
Closes gh-10647
7 years ago
Johnny Lim caa6e18be1 Remove "Securing the H2 console" section
Closes gh-10657
7 years ago
Stephane Nicoll 2eba1c5f62 Polish "Use Assert.state() with Supplier where possible"
Closes gh-10658
7 years ago
dreis2211 3b71393e0a Use Assert.state() with Supplier where possible
See gh-10658
7 years ago
Johnny Lim 5aa32b3d0f Polish
Closes gh-10636
7 years ago
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
7 years ago
Stephane Nicoll 22de4303c5 Polish "When pool autocommit is disabled, inform Hibernate"
Closes gh-9737
7 years ago