Commit Graph

2827 Commits (73fe8d482e69ad08fef1a14c1ddfbe2dcec15726)

Author SHA1 Message Date
Madhura Bhave d958e83799 Merge branch '2.0.x' 6 years ago
Madhura Bhave 56235187d0 Fix typo 6 years ago
Andy Wilkinson a33dd8b9cb Merge branch '2.0.x' 6 years ago
Andy Wilkinson 10b91602e9 Increase connect and read timeouts when testing against Cassandra 6 years ago
Andy Wilkinson 1852ecc444 Merge branch '2.0.x' 6 years ago
Andy Wilkinson de7899fba4 Improve reliability by give Cassandra more time and attempts to start 6 years ago
Andy Wilkinson d11ee29fa1 Merge branch '2.0.x' 6 years ago
Andy Wilkinson bfc4cad692 Upgrade to Spring REST Docs 2.0.2.RELEASE
Closes gh-13505
6 years ago
Stephane Nicoll 5be84dd32b Merge branch '2.0.x' 6 years ago
Stephane Nicoll cdbe6fa122 Document properties migrator usage
Closes gh-13600
6 years ago
Andy Wilkinson 13835c5dc7 Upgrade to Spring Batch 4.1.0.M2
Closes gh-13820
6 years ago
Stephane Nicoll 1c0eb8de36 Merge branch '2.0.x' 6 years ago
Stephane Nicoll a1ef3f070a Improve documentation for using a mock environment with @SpringBootTest
Closes gh-13827
6 years ago
Stephane Nicoll 237f2fb494 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 592754d806 Polish "Make sure exception tag values are not empty in web metrics"
Closes gh-13187
6 years ago
Jon Schneider ee37dc1c31 Make sure exception tag values are not empty in web metrics
See gh-13187
6 years ago
Stephane Nicoll bc7db86c8c Consistently apply exclude on auto-configuration
Previously, exclude of an import selector was applied only locally. In
other words, if one import selector imports `AcmeAutoConfiguration` and
another one exclude it, it would still be imported because exclude were
applied separately

This commit collects the outcome of all auto-configuration import
selectors and then apply exclusions in a single pass.

Closes gh-12586
6 years ago
Stephane Nicoll 184cd0c708 Avoid CGLIB requirement in MessageSourceAutoConfiguration
Closes gh-13824
6 years ago
Madhura Bhave ceaac98847 Update docs with OIDC provider configuration
See gh-13210
6 years ago
Madhura Bhave 6333edbe16 Merge branch '2.0.x' 6 years ago
Madhura Bhave 66156cc24f Polish 6 years ago
Andy Wilkinson b58314f214 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 681717d07a Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 147a08eb4c Merge branch '2.0.x' 6 years ago
Andy Wilkinson b9ad0d9992 Test the Gradle plugin against Gradle 4.8.1 instead of 4.8
Closes gh-13809
6 years ago
Andy Wilkinson 8deea933b9 Test the Gradle plugin against Gradle 4.9
Closes gh-13808
6 years ago
Andy Wilkinson 93daac7ba8 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 53400b1d81 Merge branch '1.5.x' into 2.0.x 6 years ago
Madhura Bhave dcb172fe2a Merge branch '2.0.x' 6 years ago
Madhura Bhave e907ae605d Fix tests
See gh-13783
6 years ago
Madhura Bhave 9bd723ddad Fix exception message
Fixes gh-13783
6 years ago
Madhura Bhave 9b6a069903 Merge branch '2.0.x' 6 years ago
Johnny Lim 86ccb26c58 Polish EndpointRequest.RequestMatcherFactory.antPath()
Closes gh-13775
6 years ago
Madhura Bhave ddce819e6f Merge branch '2.0.x' 6 years ago
Madhura Bhave c36804908c Merge branch '1.5.x' into 2.0.x 6 years ago
Madhura Bhave f88ebc06ff Add support for OIDC Configuration Provider
Closes gh-13210
6 years ago
Madhura Bhave 4fee54cf24 Expose a TestDispatcherServlet bean in the MockMvcAutoConfiguration
This commit also contains changes to `ServletContextInitializerBeans`.
`ServletContextInitializerBeans` can now be configured to only look
for specific ServletContextInitializer subclasses, defaulting to
ServletContextIntializer.class. `SpringBootMockMvcBuilderCustomizer`
only cares about filters so it was unnecessary to look for all
`ServletContextInitializer`s. Additionally, adapting `Servlet` beans
caused a cycle once the `DispatcherServlet` bean was added and the
customizer only needs to adapt `Filter` beans.

Closes gh-13241
6 years ago
Andy Wilkinson 6a189cee06 Merge branch '2.0.x' 6 years ago
Andy Wilkinson a57d0f0853 Reinstate order of WebMvcMetricsFilter
Closes gh-13781
6 years ago
Stephane Nicoll a98b020ee4 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 944ed767ac Add dependency management for elasticsearch integration tests distro
Closes gh-13547
6 years ago
Stephane Nicoll 526b50645e Merge branch '2.0.x' 6 years ago
dreis2211 e9a8d4c949 Remove unused AbstractCouchbaseAutoConfigurationTests
Closes gh-13797
6 years ago
Stephane Nicoll 8bf22db9c3 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 6e749ef276 Improve NoSuchBeanDefinitionFailureAnalyzer to handle null beans
Previously, if a user defines a `@Bean` with a method that returns
`null`, injection by type will ignore that definition but the report
doesn't mention that candidate.

This commit improves the failure analyzer to look for user-defined beans
as well, detecting beans that are `null` matching the requested type
and including them in the report.

Closes gh-13531
6 years ago
Stephane Nicoll c0b9c72d74 Merge branch '2.0.x' 6 years ago
Stephane Nicoll e679690a74 Clarify the WebTestClient requires WebFlux on the classpath
Closes gh-13469
6 years ago
Stephane Nicoll 070c26d6c3 Merge branch '2.0.x' 6 years ago
Stephane Nicoll d6c7eff8f7 Add check for empty values for lookup
Closes gh-13419
6 years ago
Stephane Nicoll ada699a9f6 Allow to customize the RabbitMQ RetryTemplate
This commit adds the ability to customize the RetryTemplate used in the
RabbitMQ infrastructure. The customizer is slightly unusual and offer
a `Target` enum that define the component that will use the retry
template: `SENDER` for the auto-configured `RabbitTemplate` and
`LISTENER` for a listener container created by a
`RabbitListenerContainerFactoryConfigurer`.

Closes gh-13793
6 years ago
Stephane Nicoll fd6023fe49 Polish contribution
Closes gh-13790
6 years ago
Johnny Lim 58df752af4 Polish
See gh-13790
6 years ago
Stephane Nicoll 43091150d8 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 8095ee4a5b Polish contribution
See gh-13790
6 years ago
Johnny Lim f363fe7dd1 Polish
See gh-13790
6 years ago
Stephane Nicoll ac01409332 Merge branch '2.0.x' 6 years ago
Stephane Nicoll ec2ebf52de Merge branch '1.5.x' into 2.0.x 6 years ago
Brian Clozel 624cbe08d5 Merge branch '2.0.x' 6 years ago
Brian Clozel 58e886fddf Remove @Lazy injection for HttpMessageConverters
This commit turns a lazy injection point for `HttpMessageConverters`
into an `ObjectProvider`-backed injection.

This allows to lazily rely on that bean without creating for it; in some
environments, such proxy creation can lead to issues like SPR-16990.

See gh-13785
6 years ago
Stephane Nicoll b7274966c4 Merge branch '2.0.x' 6 years ago
Stephane Nicoll ffe994335e Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 3c67edafcd Expose more Quartz properties
Closes gh-13782
6 years ago
Stephane Nicoll 66cb4ce3c7 Polish "Allow to configure Quartz's "overwriteExistingJobs" property"
Closes gh-13582
6 years ago
Taras Danylchuk 910e6dc4cc Allow to configure Quartz's "overwriteExistingJobs" property
See gh-13582
6 years ago
Brian Clozel 0654dd4de2 Add JUnit Jupiter API to spring-boot-docs build
This is required for the docs module to inspect Spring Boot
annotations for meta-annotations.

See gh-13739
6 years ago
Stephane Nicoll 9c0ce3d20a Merge branch '2.0.x' 6 years ago
Johnny Lim f2cef87878 Fix since on JdbcOperationsDependsOnPostProcessor
Closes gh-13778
6 years ago
Brian Clozel 9b60eef0e2 Fix build after SPR-17034 in Spring Framework
Since SPR-17034, the core container now behaves a bit differently when
dealing with `null` beans.

Given a `null` `HandlerMapping` bean named "resourceHandlerMapping":

* `context.getBean("resourceHandlerMapping", HandlerMapping.class)`
still returns a `NullBean`
* `ListableBeanFactory.getBeansOfType` will return a Map of all existing
beans, not including the `null` ones as values of the map.

Closes gh-13760
6 years ago
Johnny Lim 1ae420670a Polish
Closes gh-13776
6 years ago
Stephane Nicoll 48962718d1 Merge branch '2.0.x' 6 years ago
Johnny Lim 068e22d60b Polish
See gh-13776
6 years ago
Stephane Nicoll 635986299c Merge branch '2.0.x' 6 years ago
Johnny Lim 4314dc2972 Remove a List creation in CompositePropertySources.iterator()
Closes gh-13774
6 years ago
Andy Wilkinson ac1f2a5817 Polish 6 years ago
Madhura Bhave c0574c8437 Update docs to reflect new health & info security
See gh-13722
6 years ago
Madhura Bhave d1b8558430 Make /health and /info insecure by default
Closes gh-13722
6 years ago
Stephane Nicoll 42bba4e1c5 Document Liquibase default values
Closes gh-13765
6 years ago
Andy Wilkinson c59f31218a Revert "Ignore Data Elasticsearch test that fails due to DATAES-470"
Closes gh-13744
6 years ago
Stephane Nicoll 4c7c328972 Polish "Upgrade to Liquibase 3.6.2"
Closes gh-13625
6 years ago
Miguel Gomes b5cb074219 Upgrade to Liquibase 3.6.2
See gh-13625
6 years ago
Stephane Nicoll fa171671b1 Merge branch '2.0.x' 6 years ago
Stephane Nicoll e6ea28dec5 Polish 6 years ago
Johnny Lim 13202eb278 Prevent duplicate RequestMatcher in RequestMatcherFactory.antPath()
Closes gh-13706
6 years ago
Stephane Nicoll d17d6374f0 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 174cc2bc4e Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 8fc1e0ed4e Merge branch '2.0.x' 6 years ago
dreis2211 ac8eebfbad Fix typos
Closes gh-13762
6 years ago
Stephane Nicoll 04bca3f37f Merge branch '2.0.x' 6 years ago
Stephane Nicoll 19709f7dea Polish 6 years ago
Johnny Lim 1b3fa3ff0d Remove @since tag from getServlet()
Closes gh-13757
6 years ago
Brian Clozel 2e5f0c2873 Fix WebMvc auto-conf tests after Framework change
This commit adapts to a recent Spring Framework change (a40d25a) that
turns no-op Spring MVC beans (infrastructure components that, given
their configuration, won't contribute anything to the application) into
`NullBean` instances.
6 years ago
Madhura Bhave dba0e1b778 Merge branch '2.0.x' 6 years ago
Madhura Bhave d7822ba135 Update copyright header for modified files 6 years ago
Madhura Bhave 34ebf1a97c Merge branch '2.0.x' 6 years ago
Madhura Bhave c8c32cfa33 Migrate tests to ApplicationContextRunner 6 years ago
Madhura Bhave 6d9fabf5bc Harmonize mongo auto-configuration
Provides a way to easily exclude `MongoAutoConfiguration` or
`MongoReactiveAutoConfiguration` so that multiple mongo clients
are not present.

Fixes gh-12407
6 years ago
Andy Wilkinson 1ea91ece23 Merge branch '2.0.x' 6 years ago
Andy Wilkinson cced3514a7 Polish 6 years ago
Andy Wilkinson 6a48a440b2 Annotate our test annotations with @ExtendWith(SpringExtension.class)
Closes gh-13739
6 years ago
Andy Wilkinson 889f1bce3f Merge branch '2.0.x' 6 years ago
Andy Wilkinson c489c6c5f6 Polish test following forward merge 6 years ago
Andy Wilkinson f32ab6eade Merge branch '2.0.x' 6 years ago
Andy Wilkinson 67dfa0a720 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 7b4096ab50 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 44273ee093 Merge branch '1.5.x' into 2.0.x 6 years ago
Stephane Nicoll 611f2332e6 Polish Flyway keys 6 years ago
Stephane Nicoll 29fcb10f8d Polish 6 years ago
Stephane Nicoll 59749d53b8 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 48819253eb Fix dependency order between JdbcTemplate and database migration tools
This commit makes sure that Flyway/Liquibase migrates the schema if
necessary before a `JdbcTemplate` is made available as an injection
point.

This commit also adds a test that validates simple datasource
initialization (spring.datasource.*) happens before a `JdbcTemplate`
bean can be used.

Closes gh-13155
6 years ago
Stephane Nicoll 42f4f2ded8 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 331775d6c0 Document latest version of gradle-git-properties plugin
Closes gh-13747
6 years ago
Andy Wilkinson 8cc0d5577e Avoid unwanted bean overrides in spring-boot-test-autoconfigure
See gh-13609
6 years ago
Johnny Lim f94ce495d8 Fix parameter order for RequestMatcherAssert.doesNotMatch()
Closes gh-13707
6 years ago
Stephane Nicoll 8194dc4aea Merge branch '2.0.x' 6 years ago
Stephane Nicoll 177c54d441 Migrate JdbcTemplateAutoConfiguration tests to context runner 6 years ago
Andy Wilkinson 87b72cc981 Polish DevTools auto-configuration tests to avoid bean overrides
See gh-13609
6 years ago
Stephane Nicoll 5fcf45c4d0 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 3423c5dddb Detect DispatcherServlets registered via ServletRegistrationBean
Previously, when a DispatcherServlet was registered via a
ServletRegistrationBean, the mappings endpoint did not expose any
information about it as it wasn't detected.

This commit fixes the detection of available DispatcherServlets in the
context so that the mappings endpoint include them all.

Closes gh-13186
6 years ago
Andy Wilkinson a5b3d549b9 Ignore Data Elasticsearch test that fails due to DATAES-470 6 years ago
Andy Wilkinson 43e2df105c Align with latest changes in Spring Data REST 6 years ago
Andy Wilkinson cf3b1f6653 Start building against Spring HATEOAS 0.25.0 snapshots
See gh-13742
6 years ago
Stephane Nicoll 8426e3c2c9 Merge branch '2.0.x' 6 years ago
Johnny Lim 46e6aa5963 Fix query string encoding in TraceableHttpServletRequest
Closes gh-13545
6 years ago
dreis2211 be837ccb4b Use PropertySources.stream() where possible
Closes gh-13724
6 years ago
Stephane Nicoll 8c691273e3 Merge branch '2.0.x' 6 years ago
Johnny Lim 0de8317979 Separate logging from getUrlMappings()
Closes gh-13710
6 years ago
Andy Wilkinson c1a81cfca0 Prohibit bean overriding by default and analyze override failures
Closes gh-13609
6 years ago
Andy Wilkinson cdd9c92ba2 Start building against snapshots for Spring Data Lovelace RC1
See gh-13740
6 years ago
Andy Wilkinson 19a494a94d Merge branch '2.0.x' 6 years ago
Andy Wilkinson 57e2bb9c6a Merge branch '1.5.x' into 2.0.x 6 years ago
Johnny Lim b87b23a44f Fix parameter order for RequestMatcherAssert.doesNotMatch()
Closes gh-13707
6 years ago
Madhura Bhave 63ae682a95 Merge branch '2.0.x' 6 years ago
Madhura Bhave 4e7719f1c7 Fix typo 6 years ago
Andy Wilkinson 063e8e4dc6 Revert "Prohibit bean overriding by default and analyze override failures"
This reverts commit 710cdbab92.
6 years ago
Andy Wilkinson 710cdbab92 Prohibit bean overriding by default and analyze override failures
Closes gh-13609
6 years ago
Andy Wilkinson 918191664a Merge branch '2.0.x' 6 years ago
Andy Wilkinson 9eb5c9bd18 Merge branch '1.5.x' into 2.0.x 6 years ago
dreis2211 d1acf9a24d Fix API adaptation changes for Reactor Netty 6 years ago
Stephane Nicoll 60457f1d9a Merge branch '2.0.x' 6 years ago
Stephane Nicoll 44b9aa168e Polish "Improve description of Endpoint exclude"
Closes gh-13619
6 years ago
Miguel Gomes 838e6cdbbb Improve description of Endpoint exclude
See gh-13619
6 years ago
Stephane Nicoll 0b48e223f3 Merge branch '2.0.x' 6 years ago
Johnny Lim ab6adc8265 Polish
Closes gh-13616
6 years ago
dreis2211 5fcba490d2 Polish conditional expressions
Closes gh-13583
6 years ago
dreis2211 ba46e77169 Optimize checks for java classes in Binder
Closes gh-13567
6 years ago
Stephane Nicoll 3e24df1794 Polish "Add reference to structurizr starter"
Closes gh-13540
6 years ago
Klaus Lehner 94517b9811 Add reference to structurizr starter
See gh-13540
6 years ago
Andy Wilkinson fde534c877 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 809e30506f Merge branch '1.5.x' into 2.0.x 6 years ago
Brian Clozel 68a3c234be Adapt to API changes in Reactor Netty
The following issue changed the SSL configuration API for both client
and server: https://github.com/reactor/reactor-netty/issues/370
6 years ago