Phillip Webb
7d2f1bafc0
Update copyright year of changed files
2022-05-17 22:20:05 -07:00
Madhura Bhave
c730ab7d0c
Merge branch '2.7.x' into main
2022-05-17 14:29:36 -07:00
Scott Frederick
7d459a13c2
Add properties for SAML relying party single logout
...
Closes gh-30128
Co-authored-by: Madhura Bhave <bhavem@vmware.com>
2022-05-17 14:07:48 -07:00
Andy Wilkinson
770cb840c3
Use more flexible SpringFactoriesLoader
...
Closes gh-30235
Co-authored-by: Madhura Bhave <bhavem@vmware.com>
Co-authored-by: Stephane Nicoll <snicoll@vmware.com>
2022-05-09 14:13:04 +01:00
Scott Frederick
7e089a6b81
Remove support for embedded MongoDB
...
This commit removes auto-configuration and dependency management
for Flapdoodle embedded MongoDB in favor of the Spring Boot support
provided by Flapdoodle.
Closes gh-30863
2022-05-06 17:05:36 -05:00
Phillip Webb
7a6ca8ce25
Merge branch '2.7.x'
2022-04-20 15:30:01 -07:00
Phillip Webb
dd5696b59b
Update copyright year of changed files
2022-04-20 15:26:30 -07:00
Brian Clozel
2dc2e5ab11
Auto-configure RSocketGraphQlClient
...
This commit contributes a `RSocketGraphQlClient.Builder` component to
the context, pre-configured with the `RSocketStrategies`, a customized
`RSocketConnector` and the expected data MIME type.
See gh-30453
2022-04-19 10:53:15 +02:00
Stephane Nicoll
a4cccc98c6
Merge branch '2.7.x'
2022-04-19 09:37:08 +02:00
izeye
ed412af138
Polish
...
See gh-30695
2022-04-19 09:34:28 +02:00
Brian Clozel
eddb2b16ff
Configure RSocket server support in GraphQL
...
This commit adds the RSocket server auto-configuration for GraphQL.
See gh-30453
2022-04-14 19:54:40 +02:00
Brian Clozel
e57bbdfcf5
Polish
...
See gh-29666
2022-04-12 18:41:01 +02:00
Andy Wilkinson
44211564a4
Adapt to latest changes in Micrometer 2.0 snapshots
...
See gh-29666
2022-04-12 15:25:43 +01:00
Andy Wilkinson
6580f6c742
Align with latest changes in Micrometer 1.9 snapshots
...
See gh-30605
2022-04-12 11:47:34 +01:00
Andy Wilkinson
b871a1e457
Merge branch '2.7.x'
2022-04-12 08:51:47 +01:00
Andy Wilkinson
48f8021d88
Migrate @Local*Port annotations to spring-boot-test
...
Closes gh-29589
2022-04-12 08:48:43 +01:00
Andy Wilkinson
2e32f800e1
Merge branch '2.7.x'
2022-03-25 13:34:37 +00:00
Andy Wilkinson
8646ac4215
Move JsonComponent docs to general Jackson section
...
Closes gh-30405
2022-03-25 13:30:06 +00:00
Andy Wilkinson
5d09260870
Reinstate support for REST Assured
...
Closes gh-29543
Closes gh-30426
2022-03-25 10:12:42 +00:00
Stephane Nicoll
b8e93b27af
Merge branch '2.7.x'
2022-03-21 14:15:29 +01:00
Stephane Nicoll
7402a584bd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30347
2022-03-21 14:15:13 +01:00
Stephane Nicoll
55a385cc36
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30346
2022-03-21 14:00:30 +01:00
Henning Poettker
9d46a18406
Document WebSecurityCustomizer for H2 Console
...
See gh-29932
2022-03-21 13:38:42 +01:00
Stephane Nicoll
2088381d4b
Merge branch '2.7.x'
2022-03-21 10:06:56 +01:00
Stephane Nicoll
a2959bbcf2
Polish "Add support for cache2k in memory caching"
...
See gh-28498
2022-03-21 09:59:24 +01:00
Andy Wilkinson
17b5611ace
Merge branch '2.7.x'
2022-03-19 11:05:21 +00:00
Andy Wilkinson
f05c19a40a
Kotlin Fix JsonSerializer example in reference guide
...
Closes gh-30331
2022-03-19 10:53:22 +00:00
Stephane Nicoll
c322cebe49
Merge branch '2.7.x'
2022-03-19 09:28:43 +01:00
Stephane Nicoll
d8bb2ec4e0
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30331
2022-03-19 09:28:35 +01:00
Stephane Nicoll
bce247eafb
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30330
2022-03-19 09:28:24 +01:00
Stephane Nicoll
39339ccb49
Update copyright year of change file
...
See gh-30329
2022-03-19 09:25:46 +01:00
SangHyun-Park
8536100009
Fix JsonSerializer example in reference guide
...
See gh-30329
2022-03-19 09:25:12 +01:00
Andy Wilkinson
568cd687af
Remove support for REST Assured until it supports Groovy 4.0
...
REST Assured does not work with Groovy 4.0 so support is being
temporarily removed again.
See gh-29543
2022-03-18 12:35:19 +00:00
Madhura Bhave
70efe7d384
Fix javax import
2022-03-08 19:02:20 -08:00
Madhura Bhave
f10f27c3d4
Merge branch '2.7.x' into main
2022-03-08 17:41:28 -08:00
Madhura Bhave
ba7ba08811
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30110
2022-03-08 17:41:12 -08:00
Madhura Bhave
9c437c6cd9
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30109
2022-03-08 17:40:52 -08:00
Madhura Bhave
d240e293db
Document how to obtain ServletContext with an embedded container setup
...
Closes gh-24561
2022-03-08 17:34:35 -08:00
Brian Clozel
81754c8bc4
Upgrade to Spring GraphQL 1.0.0-SNAPSHOT
...
This commit switches to 1.0.0-SNAPSHOT for Spring GraphQL, before its
upcoming 1.0.0-M6 version.
This commit adapts to the changes introduced in
spring-projects/spring-graphql#317 : now that `GraphQlClient` has been
introduced, `GraphQlTester` has been aligned with the new
infrastructure. The `@GraphQlTest` and `@SpringBootTest` testing support
is now using different variants for each.
All samples have been updated to use the proper GraphQL terminology, see
and spring-projects/spring-graphql#310 .
See gh-29637
2022-03-08 17:54:54 +01:00
Stephane Nicoll
37ccc52b8a
Merge branch '2.7.x'
2022-03-08 12:34:30 +01:00
Stephane Nicoll
d67aa3c054
Fix null safety in Kotlin examples
...
Closes gh-30097
2022-03-08 12:34:02 +01:00
Madhura Bhave
0e71d80590
Merge branch '2.7.x' into main
2022-03-07 20:23:07 -08:00
Madhura Bhave
88bd0fa794
Merge branch '2.6.x' into 2.7.x
2022-03-07 20:22:57 -08:00
Madhura Bhave
27bf068091
Merge branch '2.5.x' into 2.6.x
2022-03-07 20:22:42 -08:00
Madhura Bhave
9b073c825b
Fix checkstyle
2022-03-07 20:22:27 -08:00
Madhura Bhave
524c0e1474
Merge branch '2.7.x' into main
2022-03-07 18:23:50 -08:00
Madhura Bhave
b80047c451
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30092
2022-03-07 18:23:36 -08:00
Madhura Bhave
ac04be75f8
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30091
2022-03-07 18:23:19 -08:00
Madhura Bhave
ed8f8d59ef
Document how to structure configurations for efficient slice tests
...
Closes gh-16088
2022-03-07 18:21:12 -08:00
Moritz Halbritter
1793cee00f
Start building against Micrometer 2.0.0-M3
...
See gh-29753
2022-03-04 11:03:22 +01:00
Andy Wilkinson
c10a6b7b3e
Merge branch '2.7.x'
2022-03-03 11:36:49 +00:00
Andy Wilkinson
1910a3b33e
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30049
2022-03-03 11:31:51 +00:00
Andy Wilkinson
d11c5d3bd2
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30048
2022-03-03 11:27:18 +00:00
wonwoo
c2bf0d551b
Polish RestController examples
...
See gh-30027
2022-03-03 11:26:11 +00:00
Moritz Halbritter
7897a913a7
Start building against Micrometer 1.9.0-M4 snapshots
...
Micrometer duplicated the binders in a separate module named
micrometer-binders, and marked the binders in the core module as
deprecated. This commit changes the imports to use the new binders in
the micrometer-binders module. Additionally, the auto-configurations
honor user-supplied beans which use the old binders in the
micrometer-core module.
See gh-30014
2022-03-01 09:20:07 +01:00
Andy Wilkinson
7dc40e95d2
Merge branch '2.7.x'
2022-02-24 12:06:21 +00:00
Eddú Meléndez
36e52758a7
Add DataCouchbaseTest annotation
...
See gh-29912
2022-02-24 11:45:09 +00:00
Andy Wilkinson
4093fff225
Merge branch '2.7.x'
2022-02-24 11:24:23 +00:00
Andy Wilkinson
53292a1f94
Polish "Add DataElasticsearchTest annotation"
...
See gh-29911
2022-02-24 11:21:24 +00:00
Eddú Meléndez
e22f78bc6a
Add DataElasticsearchTest annotation
...
See gh-29911
2022-02-24 10:27:20 +00:00
Phillip Webb
ff4b92a3ba
Update copyright year of changed files
2022-02-16 20:44:54 -08:00
Phillip Webb
f4b849ec95
Merge branch '2.7.x'
2022-02-16 20:27:18 -08:00
Phillip Webb
26512f8ac6
Merge branch '2.6.x' into 2.7.x
2022-02-16 20:24:59 -08:00
Phillip Webb
5b4ec32645
Merge branch '2.5.x' into 2.6.x
2022-02-16 18:56:12 -08:00
Phillip Webb
c86b1330cf
Update copyright year of changed files
2022-02-16 17:56:19 -08:00
Madhura Bhave
bf1ed5f2f8
Update copyright header on changed files
2022-02-16 14:24:22 -08:00
Madhura Bhave
e20ee87b5d
Remove explicit @ConstructorBinding on type
...
See gh-23216
2022-02-16 14:23:33 -08:00
Madhura Bhave
44b88cc88c
Allow @ConstructorBinding to be optional
...
This commit makes @ConstructorBinding optional for a type
that has a single parameterized constructor. An @Autowired annotation
on any of the constructors indicates that the type should not be constructor
bound.
Since @ConstructorBinding is now deduced for a single parameterized constructor,
the annotation is no longer needed at the type level.
Closes gh-23216
2022-02-16 13:47:26 -08:00
Moritz Halbritter
fdb1010cbc
Migrate auto-configurations to @AutoConfiguration
...
Closes gh-29871
2022-02-16 15:48:27 +01:00
Moritz Halbritter
8e99788fc8
Migrate auto-configurations to @AutoConfiguration
...
Closes gh-29871
2022-02-16 13:55:16 +01:00
Moritz Halbritter
44beceffaf
Merge branch '2.7.x'
2022-02-10 13:39:22 +01:00
Moritz Halbritter
96ce8d842e
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29729
2022-02-10 13:38:50 +01:00
Moritz Halbritter
44ff29c4d4
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29728
2022-02-10 13:28:15 +01:00
Moritz Halbritter
096ba72a39
Add documentation for WebMvc.fn
...
See gh-29683
2022-02-10 13:14:34 +01:00
Andy Wilkinson
819f40f81e
Merge branch '2.7.x'
2022-02-09 13:39:28 +00:00
Andy Wilkinson
e4b074f07b
Merge branch '2.6.x' into 2.7.x
2022-02-09 13:37:50 +00:00
Phillip Webb
ce6b12a024
Merge branch '2.7.x'
2022-02-05 10:16:48 -08:00
Phillip Webb
26dd6b826c
Merge branch '2.6.x' into 2.7.x
2022-02-05 10:16:19 -08:00
Phillip Webb
b3a82c9de6
Merge branch '2.5.x' into 2.6.x
2022-02-05 10:16:03 -08:00
Phillip Webb
52f1799c20
Polish formatting
2022-02-05 10:15:43 -08:00
Phillip Webb
4f8558f568
Upgrade Kotlin docs samples to Jakarta EE 9
...
See gh-29499
2022-02-04 21:51:21 -08:00
Phillip Webb
a3615f4f77
Merge branch '2.7.x'
2022-02-04 20:04:28 -08:00
Phillip Webb
d212243eef
Polish 'Add Kotlin alternatives to Java documentation samples'
...
See gh-29499
2022-02-04 19:57:21 -08:00
Pavel Semyonov
197afff1d6
Add Kotlin alternatives to Java documentation samples
...
See gh-29499
2022-02-04 19:56:13 -08:00
Phillip Webb
50047e6d8c
Merge branch '2.7.x'
2022-02-04 16:10:50 -08:00
Phillip Webb
6c74e24147
Update copyright year of changed files
2022-02-04 16:09:35 -08:00
Phillip Webb
b9e037b88f
Polish
2022-02-04 16:09:22 -08:00
Phillip Webb
0083b767e6
Merge branch '2.7.x'
2022-02-03 22:53:15 -08:00
Phillip Webb
4919683354
Use consistent packages for doc samples
...
Closes gh-29646
2022-02-03 22:50:47 -08:00
Phillip Webb
a282f912e6
Organize imports
...
Organize imports according to updated checkstyle rules.
2022-02-02 19:16:13 -08:00
Andy Wilkinson
191333773f
Restore support for REST Assured
...
Closes gh-29543
2022-01-24 13:46:48 +00:00
Andy Wilkinson
a79cba129f
Remove faulty javadoc styling
...
The styling does not work with Java 17-generated javadoc. Following
Spring Framework's lead, this commit removes the custom styling.
See gh-28101
2022-01-13 15:39:34 +00:00
Stephane Nicoll
90b8d2190f
Adapt to latest change in Spring Data Elasticsearch
2022-01-12 10:04:44 +01:00
Stephane Nicoll
5f67546534
Adapt to latest API change in SD Elasticsearch
...
See gh-29292
2022-01-09 22:24:05 +01:00
Stephane Nicoll
9e27bddfc7
Start building against Spring Data 2021.2.0-M1 snapshots
...
This commit also upgrades to Elasticsearch 7.16.2
See gh-29223
See gh-29292
2022-01-08 19:57:50 +01:00
Andy Wilkinson
c2e86096cd
Reinstate support for jOOQ as it now supports Jakarta EE 9
...
Closes gh-29271
2022-01-05 15:46:54 +00:00
Phillip Webb
06398eabed
Merge branch '2.7.x'
2022-01-04 12:26:24 -08:00
Andy Wilkinson
1dbfcf8b57
Reinstate support for Spring Data Couchbase
...
Closes gh-28976
2022-01-04 16:38:16 +00:00
Brian Clozel
f61c87c3a7
Revert "Merge branch '2.7.x'"
...
This reverts commit f0677a119c
, reversing
changes made to 938d58f32c
.
2021-12-21 09:05:06 +01:00
Brian Clozel
f0677a119c
Merge branch '2.7.x'
2021-12-21 09:04:10 +01:00
Brian Clozel
22706057f0
Document Spring GraphQL support
...
This commit documents all the features added in the previous commits:
from the main infrastructure support, to testing and metrics.
See gh-29140
2021-12-21 08:34:56 +01:00
Andy Wilkinson
fe7b13ec46
Upgrade to Spring Framework 6 and Jakarta EE 9
...
Closes gh-28619
Closes gh-28620
Closes gh-28621
Closes gh-28622
Closes gh-28623
Closes gh-28624
Closes gh-28625
Closes gh-28626
Closes gh-28627
Closes gh-28628
Closes gh-28629
Closes gh-28630
Closes gh-28631
Closes gh-28632
Closes gh-28633
Closes gh-28634
Closes gh-28635
Closes gh-28636
Closes gh-28638
Closes gh-28639
Closes gh-28640
Closes gh-28644
Closes gh-28645
Closes gh-28650
Closes gh-28711
Closes gh-28866
Closes gh-28867
Closes gh-28868
Closes gh-28872
See gh-28641
See gh-28642
See gh-28643
See gh-28646
See gh-28647
See gh-28648
See gh-28649
See gh-28721
See gh-28869
See gh-28871
2021-11-30 20:32:16 +00:00
Andy Wilkinson
4a8904aaa9
Drop support for jOOQ until its dependencies are Jakarta EE 9 compatible
...
Closes gh-28821
2021-11-30 15:55:48 +00:00
Andy Wilkinson
f26995307e
Remove support for REST Assured until it supports Jakarta EE 9
...
Closes gh-28722
2021-11-30 15:55:47 +00:00
Andy Wilkinson
8bf2ffd93c
Drop support for Jersey until jersey-spring6 is available
...
Closes gh-28808
2021-11-30 15:39:39 +00:00
Scott Frederick
29a21d4621
Remove support for Spring Data Couchbase and Couchbase caching
...
Fixes gh-28613
2021-11-30 15:39:28 +00:00
Stephane Nicoll
afa006986b
Merge branch '2.5.x'
...
Closes gh-28713
2021-11-17 09:01:53 +01:00
Vedran Pavic
c8dd0a584b
Fix "Configure Two DataSources" example
...
With the present example, the `secondDataSource` bean factory method
will use `firstDataSourceProperties` due to it being annotated with
`@Primary`.
This commit adds the `@Qualifier` needed to ensure `secondDataSource`
bean factory method uses `secondDataSourceProperties`.
See gh-28712
2021-11-17 09:00:14 +01:00
Phillip Webb
cf9156e497
Add SameSite cookie support for servlet web servers
...
Update Tomcat, Jetty and Undertow `ServletWebServerFactory`
implementations so that they can write SameSite cookie attributes.
The session cookie will be customized whenever the
`server.servlet.session.cookie.same-site` property is set.
Other cookies can be customized with the new `CookieSameSiteSupplier`
interface which can be registered using `@Bean` methods.
Closes gh-20971
Co-authored-by Andy Wilkinson <wilkinsona@vmware.com>
2021-10-20 22:58:31 -07:00
Phillip Webb
3729c4909a
Polish package name for web sample code
...
See gh-27132
2021-10-20 21:31:41 -07:00
Vincent Ricard
52176b8ed6
Remove english contractions from the documentation
...
See gh-28064
2021-09-21 08:00:48 +02:00
Madhura Bhave
7e257dc24c
Rename packages for code samples to match sections
...
See gh-27132
2021-09-20 16:15:08 -07:00
Andy Wilkinson
32cfde074f
Merge branch '2.5.x'
2021-09-16 12:11:42 +01:00
Andy Wilkinson
9df099e343
Polish
2021-09-16 12:11:34 +01:00
Andy Wilkinson
07d9a614e0
Merge branch '2.5.x'
...
Closes gh-27804
2021-08-23 15:45:51 +01:00
Andy Wilkinson
b508d77a4e
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27803
2021-08-23 15:45:33 +01:00
Andy Wilkinson
990b766847
Polish "Document how to parameterize REST Docs' output dir with WebTestClient"
...
See gh-27755
2021-08-23 15:36:16 +01:00
Berchris Requiao
c83f6ebaa2
Document how to parameterize REST Docs' output dir with WebTestClient
...
See gh-27755
2021-08-23 15:30:21 +01:00
Brian Clozel
8b3bea173c
Configure WebTestClient for @AutoConfigureMockMvc tests
...
As of Spring Framework 5.3, `WebTestClient` can now be configured on top
of `MockMvc` for testing Spring MVC applications in a mock environment.
Prior to this commit, `WebTestClient` would be already configured for
WebFlux mock setups with `@AutoConfigureWebTestClient` or live servers
(for both MVC and WebFlux apps).
This commit enhances the `@AutoConfigureWebMvc` support so that a
`WebTestClient` instance is auto-configured if the spring-webflux
dependency is present on the classpath.
Closes gh-23067
2021-08-03 09:43:44 +02:00
Andy Wilkinson
4d30eb453f
Adopt Hiberate's CamelCaseToUnderscoresNamingStrategy
...
Closes gh-27352
2021-07-19 13:19:49 +01:00
Andy Wilkinson
43f1b98864
Polish "Add @WebServiceServerTest slice test support"
...
See gh-27091
2021-07-16 11:28:39 +01:00
Phillip Webb
e85b0c7012
Merge branch '2.5.x'
2021-06-23 17:29:41 -07:00
Phillip Webb
fd83158fa5
Merge branch '2.4.x' into 2.5.x
2021-06-23 17:28:31 -07:00
Phillip Webb
5fc0e1ca81
Merge branch '2.5.x'
...
Closes gh-27057
2021-06-23 17:23:25 -07:00
Phillip Webb
af37f59136
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27056
2021-06-23 17:13:13 -07:00
Andy Wilkinson
4290193a65
Merge branch '2.5.x'
...
Closes gh-27025
2021-06-22 13:20:11 +01:00
Andy Wilkinson
051638631b
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27024
2021-06-22 13:02:06 +01:00
Stephane Nicoll
6505e03cb2
Polish "Add auto-configuration for Spring Data Envers"
...
See gh-22610
2021-06-14 08:28:17 +02:00
Phillip Webb
f798f26596
Merge branch '2.4.x'
2021-06-08 18:05:50 -07:00
Phillip Webb
499a29c415
Move "Testcontainers" How-to
...
See gh-26262
2021-05-18 11:49:03 -07:00
Phillip Webb
72d50ed2f8
Move "Testing With Spring Security" How-to
...
See gh-26262
2021-05-18 11:49:02 -07:00
Phillip Webb
d3207b107c
Polish docs
2021-05-05 23:42:22 -07:00
Phillip Webb
57e54af6f5
Delete R2dbcDatabaseInitializationConfiguration
...
The `R2dbcDatabaseInitializationConfiguration` docs class is not needed
in 2.5.x.
Closes gh-26225
2021-05-04 08:15:14 -07:00
Phillip Webb
b5583a4620
Polish doc code samples
...
See gh-6313
2021-05-03 22:39:44 -07:00
Phillip Webb
9aad29da0c
Extract code samples from docs
...
See gh-6313
2021-05-03 17:46:37 -07:00
Phillip Webb
b314d848dc
Polish docs code
...
See gh-6313
2021-04-30 18:19:52 -07:00
Phillip Webb
09e85806d6
Align docs package structure with heading IDs
...
See gh-6313
2021-04-30 16:34:35 -07:00
Phillip Webb
5e8f383947
Extract code samples from docs
...
See gh-6313
2021-04-26 14:01:37 -07:00
Phillip Webb
32a87fcbda
Extract code samples from docs
...
See gh-6313
2021-04-25 16:07:26 -07:00
Phillip Webb
f30d48e3b3
Extract code samples from docs
...
See gh-6313
2021-04-23 23:41:06 -07:00
Phillip Webb
02cc778911
Extract code samples from docs
...
See gh-6313
2021-04-23 19:10:09 -07:00
Stephane Nicoll
57d35aba12
Merge branch '2.4.x'
...
Closes gh-26160
2021-04-19 17:09:45 +02:00
Stephane Nicoll
6bbd36c77a
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26159
2021-04-19 17:01:28 +02:00
Stephane Nicoll
03b65f3260
Polish "Enhance multiple entity manager factories how-to"
...
See gh-14928
2021-04-19 16:59:31 +02:00
Stephane Nicoll
d50e581403
Start building against Micrometer 1.7.0-RC1 snapshots
...
See gh-25934
2021-04-09 13:44:32 +02:00
Phillip Webb
4b05dbf4a2
Polish
2021-04-06 14:59:13 -07:00
Andy Wilkinson
73e1dd8728
Polish "Auto-configure Mongo metrics"
...
See gh-23990
2021-04-06 18:15:09 +01:00
Brian Clozel
72a1eb6384
Allow to manually tag request metrics with exceptions
...
Prior to this commit, some exceptions handled at the controller or
handler function level would:
* not bubble up to the Spring Boot error handling support
* not be tagged as part of the request metrics
This situation is inconsistent because in general, exceptions handled at
the controller level can be considered as expected behavior.
Also, depending on how the exception is handled, the request metrics
might not be tagged with the exception.
This will be reconsidered in gh-23795.
This commit prepares a transition to the new situation. Developers can
now opt-in and set the handled exception as a request attribute. This
well-known attribute will be later read by the metrics support and used
for tagging the request metrics with the exception provided.
This mechanism is automatically used by the error handling support in
Spring Boot.
Closes gh-24028
2021-04-01 21:09:46 +02:00
Phillip Webb
bea307b115
Extract code samples from docs
...
See gh-6313
2021-03-12 17:49:17 -08:00
Phillip Webb
05cf7fbb04
Use new backend features for extracted samples
...
Update extracted samples to make use of code folding and chomping.
See gh-6313
2021-03-09 11:55:23 -08:00
Phillip Webb
a1dc107144
Update copyright year of changed files
2021-02-18 16:23:56 -08:00
Phillip Webb
23ebf017c0
Extract code samples from docs
...
See gh-6313
2021-02-04 15:55:35 -08:00
Phillip Webb
0e326d6b0f
Extract some code samples from docs
...
See gh-6313
2021-02-03 18:10:44 -08:00
Phillip Webb
073f8c4b23
Polish spring-boot-docs
...
See gh-25089
2021-02-03 16:25:11 -08:00
Phillip Webb
2a85427324
Refine spring-boot-docs package restructure
...
Refine the package restructure started in 91ccc23462
to help provide
a solid foundation for code snippets. This commit renames many of the
classes so that they no longer end in `Example`. It also removes some
of the inner types that were previously used. Many tag comments have
also been moved to ensure that `import` statements are available in
the docs.
Closes gh-25089
2021-02-03 15:47:05 -08:00
Phillip Webb
91ccc23462
Restructure spring-boot-docs packages
...
Restructure the packages in `spring-boot-docs` so that they mirror
the documentation sections. There are now three main packages:
`springbootfeatures`, `productionreadyfeatures` and `howto`. Each
of the main packages has a subpackage named after the section headings.
Example code now uses consistent `// tag::` names and imports are
applied using `[tag=*]` whenever possible.
Test snippets have been moved to `src/main/java` so that only a single
import attribute needs to be defined.
Closes gh-25089
2021-02-02 17:09:45 -08:00
Stephane Nicoll
1d30a4716e
Merge branch '2.4.x'
...
Closes gh-24708
2021-01-08 15:54:36 +01:00
Stephane Nicoll
b8a1869569
Merge branch '2.3.x' into 2.4.x
...
Closes gh-24707
2021-01-08 15:53:53 +01:00
Stephane Nicoll
826d79be3e
Clarify behaviour of WebServerFactory in reference guide
...
Closes gh-24705
2021-01-08 15:50:16 +01:00
Andy Wilkinson
fb0f27ce2d
Move EMFDependsOnPostProcessor into autoconfigure.orm.jpa
...
Closes gh-24452
2020-12-15 14:20:50 +00:00
Andy Wilkinson
6a2332d477
Merge branch '2.3.x'
...
Closes gh-24062
2020-11-05 15:55:09 +00:00
Andy Wilkinson
44d0ce5ff1
Merge branch '2.2.x' into 2.3.x
...
Closes gh-24060
2020-11-05 15:53:53 +00:00
Andy Wilkinson
9c5d1646bd
Show how to configure a case-sensitive physical naming strategy
...
Closes gh-24045
2020-11-05 15:53:32 +00:00
Andy Wilkinson
d5980be623
Clarify documentation for relaxed binding of environment variables
...
Closes gh-22974
2020-11-04 17:40:27 +00:00
Andy Wilkinson
c289ba0c2c
Recommend disabling context root redirects with proxied Tomcat
...
Closes gh-22908
2020-11-04 10:13:55 +00:00
Pascal Schumacher
5472fcf433
Fix typo in Spring Session documentation
...
See gh-24020
2020-11-03 20:31:42 +00:00
Andy Wilkinson
2f280b01e1
Improve Spring Session back-off documentation
...
Closes gh-23151
2020-11-03 19:42:57 +00:00
Andy Wilkinson
35bff55097
Ensure that Quartz can be auto-configured with a Quartz-specific TM
...
Previously, Quartz could be configured with a specific DataSource
using `@QuartzDataSource` but it was not possible to configure a
Quartz-specific transaction manager. This could result in the
different DataSources being used by Quartz itself and Quart'z
DataSourceTransactionManager.
This commit introduces a new qualifier, `@QuartzTransactionManager`,
that can be used to avoid the above-described problem. Any
`@QuartzTransactionManager`-annotated bean will be used by the
Quartz auto-configure configuration instead of the application's main
`TransactionManager`. If no such qualified bean is present, the
application's main TransactionManager, if any, will be used as before.
Fixes gh-20184
2020-11-03 15:56:44 +00:00
Andy Wilkinson
d32d65b02c
Add tip about providing as much typo info as possible in @Bean methods
...
Closes gh-22925
2020-11-03 10:16:20 +00:00
Stephane Nicoll
93e36a97ab
Remove version elements from Maven plugin documentation
...
This commit removes `<version>` from the Maven Plugin documentation
where it makes sense so that versions aren't hardcoded unnecessarily.
Rather, a plugin or dependency management should be in place so those
are not needed.
Closes gh-23909
2020-10-28 13:39:03 +01:00
Brian Clozel
9478cd2dfb
Document how to configure h2c protocol
...
Prior to this commit, the how-to documentation would say that Spring
Boot does not support the h2c protocol. While it's not supported
out-of-the-box with a configuration property, this protocol can still be
configured using server customizers.
This commit documents, with code snippets, the server customizers one
should use to configure the h2c protocol in an application - for each
supported server.
Closes gh-21997
2020-10-22 20:04:35 +02:00
Stephane Nicoll
4f4cc8b182
Polish contribution
...
See gh-23755
2020-10-20 16:56:30 +02:00
cdalexndr
2f2b1b9656
Note that using LiveReload requires Devtools restart to be enabled
...
See gh-23755
2020-10-20 16:53:49 +02:00
Stephane Nicoll
27af908b99
Note that a Neo4j reactive transaction manager is not auto-configured
...
Closes gh-23629
2020-10-14 13:39:38 +02:00
Phillip Webb
c523295694
Merge branch '2.1.x' into 2.2.x
...
Closes gh-23610
2020-10-07 11:04:39 -07:00
Phillip Webb
206356728c
Add upgrading section to reference docs
...
Add a section to the reference documentation with links to the release
notes on the wiki.
Closes gh-23529
2020-10-07 11:04:20 -07:00
ketaki-t
66aa24b5f0
Remove documentation for unsupported gradle versions
...
See gh-23562
2020-10-01 17:13:26 -07:00
Pavel Gordon
62eb835a4e
Fix link to Log4j's JDK Logging Adapter in reference documentation
...
See gh-23459
2020-09-23 14:36:00 +02:00
Stephane Nicoll
2999f09a40
Rework tip on templates location in the IDE
...
This commit rework the tip on locating templates when running the app
in the IDE. Using classpath* should not change anything as this won't
make a difference without a pattern in the path.
Closes gh-23068
2020-09-22 16:44:16 +02:00
Stephane Nicoll
7f84a92ef1
Document that Java 15 is supported
...
Closes gh-23447
2020-09-22 15:19:47 +02:00
Stephane Nicoll
1631ae23f5
Allow RestTemplateBuilder to be further customized
...
Closes gh-23389
2020-09-22 14:07:43 +02:00
David Good
775f0fa861
Improve sanitization for list of URI types
...
Prior to this commit, Actuator would sanitize properties values when
serializing them on the dedicated endpoint. Keys like "password" or
"secret" are entirely sanitized, but other keys like "uri" or "address"
are considered as URI types and only the password part of the user info
is sanitized.
This commit fixes the sanitization process where lists of such URI types
would not match the first entries of the list since they're starting
with `'['`. This commit improves the regexp matching process to sanitize
all URIs within a collection.
The documentation is also updated to better underline the processing
difference between complete sanitization and selective sanitization for
URIs.
Fixes gh-23037
2020-09-11 11:34:38 +02:00
Andy Wilkinson
e4691a4c61
Document that sliced tests don't scan @ConfigurationProperties beans
...
Closes gh-23210
2020-09-10 11:14:28 +01:00
Stephane Nicoll
65a5994354
Merge branch '2.3.x'
...
Closes gh-23061
2020-08-24 11:57:42 +02:00
Stephane Nicoll
39dc2e7de4
Merge branch '2.2.x' into 2.3.x
...
Closes gh-23060
2020-08-24 11:57:22 +02:00
Stephane Nicoll
f1455b156a
Polish "Add example of custom Actuator operations"
...
See gh-23028
2020-08-24 11:56:31 +02:00
Ivo Smid
e8de069e00
Add example of custom Actuator operations
...
See gh-23028
2020-08-24 11:37:00 +02:00
dreis2211
06eb7e9777
Mention correct JUnit 5 annotations in Kotlin testing section
...
See gh-23002
2020-08-19 10:07:40 +02:00
Maciej Walkowiak
15de956566
Fix typo `Assert4J` -> `AssertJ`
...
See gh-22948
2020-08-14 15:09:56 -07:00
Stephane Nicoll
f61a632a37
Polish "Fix conditions that lead to auto-configure PushGateway"
...
See gh-22919
2020-08-13 11:47:43 +02:00
smlc
c355b95f6c
Fix conditions that lead to auto-configure PushGateway
...
See gh-22919
2020-08-13 11:41:49 +02:00
Stephane Nicoll
ee2363fca7
Polish "Harmonize Discover the HTTP Port at Runtime How-To"
...
See gh-22898
2020-08-12 09:50:44 +02:00
John Franco
303768b2b5
Harmonize Discover the HTTP Port at Runtime How-To
...
See gh-22898
2020-08-12 09:48:57 +02:00
Madhura Bhave
cdbb7f441a
Do not ignore null/empty values from SPRING_APPLICATION_JSON
...
Fixes gh-21542
2020-08-11 12:22:08 -07:00
Stephane Nicoll
ccffd50285
Document the limitation of default value detection
...
Closes gh-22685
2020-08-11 16:51:00 +02:00
Stephane Nicoll
64a5aa9340
Polish
2020-08-11 16:41:47 +02:00
Stephane Nicoll
5bd69fcd61
Merge branch '2.3.x'
...
Closes gh-22874
2020-08-11 13:40:21 +02:00
Stephane Nicoll
dc4de06b35
Restore customization of the Couchbase cache manager
...
With the upgrade to the new Couchbase SDK and the related changes in
Spring Data Couchbase, CacheManagerCustomizer can no longer be used to
customize the Couchbase cache manager as it is an immutable class.
This commit introduces a dedicated callback for the
CouchbaseCacheManagerBuilder that is used by the auto-configuration and
update the documentation to refer to it with a sample usage.
Closes gh-22573
2020-08-11 13:32:17 +02:00
Stephane Nicoll
8962d6ca21
Polish
2020-08-10 14:31:16 +02:00
Andy Wilkinson
63f7c75b61
Polish
2020-08-06 13:34:01 +01:00
Andy Wilkinson
b53f54f2cf
Add tip about using AopTestUtils.getTargetProxy with proxied spy beans
...
Closes gh-22281
2020-08-06 09:21:11 +01:00
Andy Wilkinson
bfe250e5d3
Clarify docs on schema and data SQL scripts with Flyway and Liquibase
...
Closes gh-20920
2020-08-05 18:14:39 +01:00
Stephane Nicoll
36fb86a110
Update to core r2dbc support
...
This commit adapts the auto-configuration for the new core r2dbc support
in Spring Framework and provides auto-configuration for
R2dbcEntityOperations.
Closes gh-22708
2020-08-04 16:00:29 +02:00
Stephane Nicoll
4082cddce2
Merge branch '2.1.x' into 2.2.x
...
Closes gh-22705
2020-08-03 15:00:41 +02:00
Johnny Lim
bd2874de49
Fix broken links to Micrometer registry docs
...
See gh-22704
2020-08-03 14:58:22 +02:00
Andy Wilkinson
22dc4e7608
Clarify documentation on @AutoConfigureRestDocs with WebTestClient
...
Closes gh-15977
2020-07-30 12:12:10 +01:00
Andy Wilkinson
1871cffc7d
Document that constructor binding does not support @…Unit annotations
...
Closes gh-22565
2020-07-30 09:04:30 +01:00
Andy Wilkinson
ddb4de2db1
Merge branch '2.3.x'
...
Closes gh-22630
2020-07-28 18:27:13 +01:00
Andy Wilkinson
77287f8632
Merge branch '2.2.x' into 2.3.x
...
Closes gh-22629
2020-07-28 18:27:01 +01:00
Andy Wilkinson
5ea8bb0676
Recommend the use of a MeterBinder when a metric depends on a bean
...
Closes gh-19557
2020-07-28 18:26:38 +01:00
Andy Wilkinson
856c55b188
List DevTools in section overview of multi-page documentation
...
Closes gh-22591
2020-07-28 14:36:23 +01:00
dreis2211
c405b8b9c9
Fix link to Elasticsearch health indicator
...
See gh-22598
2020-07-28 13:21:09 +01:00
Andy Wilkinson
d9b61c4aaa
Update link to App Engine's Spring Boot sample
...
Closes gh-22607
2020-07-28 08:42:40 +01:00
Andy Wilkinson
0a01875d41
Improve documentation about swapping one technical starter for another
...
Closes gh-20408
2020-07-27 15:50:07 +01:00
Andy Wilkinson
812a0ed0c6
Define the reference doc authors in a single place
...
Closes gh-20896
2020-07-27 15:20:59 +01:00
Andy Wilkinson
b631fa1405
Describe MongoClientSettingsBuilderCustomizer in the documentation
...
Closes gh-21696
2020-07-27 14:46:30 +01:00
Andy Wilkinson
be428ef0f2
Document the need for configuration files to have a file extension
...
Closes gh-22278
2020-07-27 14:09:54 +01:00
Andy Wilkinson
7b3c0a9e09
Advise against java.util.Optional configuration properties
...
Closes gh-21868
2020-07-27 09:58:24 +01:00
Andy Wilkinson
21f733b89b
Merge branch '2.1.x' into 2.2.x
...
Closes gh-22409
2020-07-20 13:49:53 +01:00
Andy Wilkinson
179d2c79d6
Avoid trivialising what the reader's learning about
...
Closes gh-22408
2020-07-20 13:45:41 +01:00
Andy Wilkinson
d9882f2c88
Clarify the effects of ordering auto-configuration classes
...
Closes gh-22337
2020-07-15 10:48:01 +01:00
Stephane Nicoll
429a504bbe
Polish "Allow data unit to be specified on the constructor parameter"
...
See gh-21746
2020-07-09 11:51:32 +02:00
Andy Wilkinson
66987533d1
Link to application properties section from externalized config list
...
Closes gh-22262
2020-07-08 17:58:35 +01:00
Andy Wilkinson
a0946c8923
Start building against Reactor 2020.0.0 snapshots
...
See gh-21927
2020-06-22 17:34:56 +01:00
Stephane Nicoll
9b803af3c3
Polish "Document how to exclude an annotation processor with Maven"
...
See gh-22000
2020-06-19 11:36:25 +02:00
Marco Pens
627c0b1031
Document how to exclude an annotation processor with Maven
...
See gh-22000
2020-06-19 11:35:48 +02:00
Andy Wilkinson
67604a5416
Only process main metadata as it already includes additional metadata
...
Previously, the configuration property table generation was reading
both the main metadata and the additional metadata from each project.
This was unnecessary as the annotation processor will have already
merged the additional metadata into the main metadata before writing
it to disk. Processing both the main and additional metadata led to
a clash as the metadata overlapped. When the entry in the additional
metadata won the clash, the resulting entry in the configuration
property table would lose any details that aren't contained in the
additional metadata.
This commit updates the property table generation code to only use
the main metadata files.
Fixes gh-21131
2020-06-18 15:49:34 +01:00
Andy Wilkinson
2de906caf7
Polish "Clarify loss of defaults when adding custom mapping"
...
See gh-20716
2020-06-08 17:34:11 +01:00
Norio
9f009e4445
Clarify loss of defaults when adding custom mapping
...
See gh-20716
2020-06-08 17:31:26 +01:00
Andy Wilkinson
4a0e8217f0
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21759
2020-06-08 17:07:51 +01:00
Andy Wilkinson
5dce945e29
Document dispatcher-types configuration for secured error pages
...
Closes gh-19293
2020-06-08 17:06:42 +01:00
Andy Wilkinson
020a47ba3e
Document support for Gradle 5
...
Closes gh-15358
2020-06-08 14:29:07 +01:00
Phillip Webb
bfe1c281f0
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21743
2020-06-07 10:25:33 -07:00
Phillip Webb
70e0a27949
Drop the use of the term "white list"
...
Closes gh-21737
2020-06-07 10:22:35 -07:00
Stephane Nicoll
eb38eeaf30
Polish
2020-06-05 16:25:12 +02:00
Moritz do Rio Schulze
1e168a2145
Fix typo in section 4.30.6
...
See gh-21485
2020-05-20 17:41:50 -07:00
Andy Wilkinson
4a896f2272
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21471
2020-05-15 16:20:23 +01:00
Andy Wilkinson
fdc63d71fe
Use HTTPS when linking to groovy-lang.org
...
Closes gh-21466
2020-05-15 16:18:23 +01:00
Madhura Bhave
27ada029b5
Revert "Expose property to configure OAuth2 provider configurationMetadata"
...
This reverts commit 7b79029949
.
See gh-21375
2020-05-13 13:53:46 -07:00
Madhura Bhave
7b79029949
Expose property to configure OAuth2 provider configurationMetadata
...
Closes gh-21375
2020-05-12 13:42:03 -07:00
Stephane Nicoll
c3eaa6dc54
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21366
2020-05-08 16:57:41 +02:00
Stephane Nicoll
efc9978362
Document use case of splitting auto-configuration and starter
...
Closes gh-20686
2020-05-08 16:55:47 +02:00
Stephane Nicoll
80410997ec
Polish "Enhance Database initialization how to guide"
...
See gh-21077
2020-04-25 09:30:58 +02:00
nikmanzotti
f2b10be01e
Enhance Database initialization how to guide
...
See gh-21077
2020-04-25 09:30:43 +02:00
Phillip Webb
581ce09f88
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21106
2020-04-23 16:39:38 -07:00
Phillip Webb
416cfc2c86
Improve @Value documentation
...
Improve "@ConfigurationProperties vs. @Value" documentation with the
recommendation that kebab-case is used with the `@Value` annotation.
Closes gh-20507
2020-04-23 16:39:22 -07:00
Phillip Webb
48821bccb7
Merge branch '2.2.x'
...
Closes gh-21092
2020-04-22 16:50:41 -07:00
Phillip Webb
d1649fbb9a
Merge branch '2.1.x' into 2.2.x
...
Closes gh-21091
2020-04-22 16:49:33 -07:00
Phillip Webb
e0f94f54ac
Add "Health as Gauge" how-to documentation
...
Add how-to documentation describing how health information can be
exported to a Micrometer Gauge.
Closes gh-18329
2020-04-22 16:45:46 -07:00
Phillip Webb
3e3587e0fb
Polish
2020-04-22 12:57:08 -07:00