Commit Graph

42040 Commits

Author SHA1 Message Date
Stephane Nicoll
c0a6bf830b Merge branch '2.7.x' into 3.0.x
Closes gh-35688
2023-06-01 14:53:10 +02:00
Stephane Nicoll
db03dc7743 Upgrade CI to Docker 24.0.2
Closes gh-35687
2023-06-01 14:52:41 +02:00
Scott Frederick
6a763f9be4 Merge branch '2.7.x' into 3.0.x
Closes gh-35689
2023-05-31 17:11:41 -05:00
Scott Frederick
c847db77e6 Correct precedence in description of MongoDB properties
Closes gh-35686
2023-05-31 17:09:45 -05:00
Andy Wilkinson
a58e98af05 Fix binding to constructor bound lateinit properties
Closes gh-35603
2023-05-26 18:12:21 +01:00
Andy Wilkinson
5ad0d49ec1 Fix hints for @Bean config props that could be constructor bound
Previously, if a `@ConfigurationProperties`-annotated `@Bean` method
returned a type that looked like it could be constructor bound, the
registered runtime hints were incorrect. With only the bean's class
to work with, the hints registrar would incorrectly determine that
the type would be constructor bound and would not register the hints
required for Java bean binding.

This commit updates the registrar to allow the caller to provide a
Bindable which knows both what should be bound and how it should be
bound, thereby allowing the registrar to generate the correct hints.
The tests for the AOT processor have also been updated to remove
duplication of the tests in BindableRuntimeHintsRegistrarTests and
to focus on the contribution creating Bindable instances with the
bind method that is required to produce the correct reflection hints.

Closes gh-35564

Co-authored-by: Phillip Webb <pwebb@vmware.com>
2023-05-26 10:28:49 +01:00
Andy Wilkinson
eb60cf4988 Remove duplication of BindableRuntimeHintsRegistrarTests
There were several tests in CPBFIAPT that were duplicating tests in
BindableRuntimeHintsRegistrarTests. To test the AOT processor, all
that is really necessary is to assert that the expected types are
found and passed to BindableRuntimeHintsRegistrar. The tests for
BindableRuntimeHintsRegistrar are then responsible for asserting
that the expected hints are generated for the various different
types.

Closes gh-35645
2023-05-26 09:41:09 +01:00
Andy Wilkinson
f03f062770 Move BindMethod to context.properties.bind and expose on Bindable
Closes gh-35642

Co-authored-by: Phillip Webb <pwebb@vmware.com>
2023-05-26 09:13:58 +01:00
Phillip Webb
581a32b107 Polish ConfigurationPropertiesBean
Closes gh-35640
2023-05-26 08:51:21 +01:00
Phillip Webb
bfbae581d7 Extract BindMethodAttribute class
Create a `BindMethodAttribute` class to manage attribute logic.

Closes gh-35638
2023-05-26 08:33:47 +01:00
Andy Wilkinson
a9f89a1e3c Merge branch '2.7.x' into 3.0.x
Closes gh-35633
2023-05-25 14:19:58 +01:00
Andy Wilkinson
812a48e877 Merge pull request #35286 from bikash30851
* gh-35286:
  Polish "Document audience support in Oauth2 resource server"
  Document audience support in Oauth2 resource server

Closes gh-35286
2023-05-25 14:12:24 +01:00
Andy Wilkinson
f452a86175 Polish "Document audience support in Oauth2 resource server"
See gh-35286
2023-05-25 14:11:44 +01:00
Bikash Adhikari
13c5c6efb1 Document audience support in Oauth2 resource server
See gh-35286
2023-05-25 14:11:27 +01:00
Andy Wilkinson
bc6015c790 Merge branch '2.7.x' into 3.0.x 2023-05-25 12:54:58 +01:00
Andy Wilkinson
7c5fd06d77 Check out code and validate Gradle wrapper in PR workflow 2023-05-25 12:54:37 +01:00
Andy Wilkinson
8ebf5f2412 Merge branch '2.7.x' into 3.0.x 2023-05-25 12:32:13 +01:00
Andy Wilkinson
746f2aa77e Add workflow for building pull requests 2023-05-25 12:30:46 +01:00
Phillip Webb
02217d35d2 Merge branch '2.7.x' into 3.0.x 2023-05-24 17:31:07 -07:00
Phillip Webb
c88a768977 Merge branch '2.6.x' into 2.7.x 2023-05-24 17:30:52 -07:00
Phillip Webb
f8c9fee3b0 Merge branch '2.5.x' into 2.6.x 2023-05-24 17:30:39 -07:00
Phillip Webb
6c4781086f Remove unused CI files 2023-05-24 17:30:12 -07:00
Phillip Webb
69fe1aa159 Merge branch '2.7.x' into 3.0.x 2023-05-24 17:28:13 -07:00
Phillip Webb
5d1fcfa472 Merge branch '2.6.x' into 2.7.x 2023-05-24 17:18:58 -07:00
Phillip Webb
12b09acc87 Merge branch '2.5.x' into 2.6.x 2023-05-24 17:18:14 -07:00
Phillip Webb
46c8b58eb5 Update CI pipeline 2023-05-24 17:17:35 -07:00
Scott Frederick
7f35edb72a Merge branch '2.7.x' into 3.0.x
Closes gh-35624
2023-05-24 15:27:05 -05:00
Scott Frederick
a5a5be37ec Upgrade CI to Docker 24.0.1
Closes gh-35622
2023-05-24 15:26:08 -05:00
Stephane Nicoll
52360755af Merge pull request #35609 from ThomasKasene
* pr/35609:
  Polish "Fix description of build-image[-no-fork] Maven plugin goals"
  Fix description of build-image[-no-fork] Maven plugin goals

Closes gh-35609
2023-05-24 13:30:14 +02:00
Stephane Nicoll
44c2090092 Polish "Fix description of build-image[-no-fork] Maven plugin goals"
See gh-35609
2023-05-24 13:28:01 +02:00
Thomas Kåsene
e84025b1b8 Fix description of build-image[-no-fork] Maven plugin goals
See gh-35609
2023-05-24 13:24:37 +02:00
Scott Frederick
72fd94f2b5 Align bean name with Spring Data Elasticsearch requirements
Fixes gh-33651
2023-05-23 14:36:02 -05:00
Stephane Nicoll
bf91ec18c1 Merge pull request #35568 from dreis2211
* pr/35568:
  Remove unnecessary exclude from spring-restdocs-mockmvc

Closes gh-35568
2023-05-22 16:31:43 +02:00
Christoph Dreis
b2b5728995 Remove unnecessary exclude from spring-restdocs-mockmvc
See gh-35568
2023-05-22 16:31:22 +02:00
Stephane Nicoll
ca8ebbf4ab Merge pull request #35576 from izeye
* pr/35576:
  Polish

Closes gh-35576
2023-05-22 16:22:26 +02:00
Johnny Lim
1b5fc89b43 Polish
See gh-35576
2023-05-22 16:17:05 +02:00
Scott Frederick
f0ed2a8e4c Set LATEST_GA to false in CI pipeline
Closes gh-35556
2023-05-18 15:24:08 -05:00
Phillip Webb
f5703778ca Merge branch '2.7.x' into 3.0.x 2023-05-18 13:08:03 -07:00
Phillip Webb
701ea30b3a Merge branch '2.6.x' into 2.7.x 2023-05-18 13:07:56 -07:00
Spring Builds
15d95ed5a0 Next development version (v2.6.16-SNAPSHOT) 2023-05-18 19:41:10 +00:00
Phillip Webb
24887b7742 Merge branch '2.7.x' into 3.0.x 2023-05-18 11:28:52 -07:00
Phillip Webb
d384a90567 Merge branch '2.6.x' into 2.7.x 2023-05-18 11:28:21 -07:00
Phillip Webb
d24ed66b2d Merge branch '2.5.x' into 2.6.x 2023-05-18 11:28:04 -07:00
Spring Builds
f8ac264bd1 Next development version (v2.5.16-SNAPSHOT) 2023-05-18 17:55:40 +00:00
Andy Wilkinson
72d405eb30 Merge branch '2.7.x' into 3.0.x 2023-05-18 14:04:09 +01:00
Andy Wilkinson
858c984b5d Merge branch '2.6.x' into 2.7.x 2023-05-18 14:03:52 +01:00
Andy Wilkinson
af89b29f0a Merge branch '2.5.x' into 2.6.x
Closes gh-35561
2023-05-18 14:03:31 +01:00
Phillip Webb
d7ff379fb8 Return 406 status code if welcome page is not accepted
Add `WelcomePageNotAcceptableHandlerMapping` which will return
an HTTP 406 status if a suitable welcome page is found but
cannot be accepted for the request.

An additional mapper is used so that we don't need to change
the order of the `WelcomePageHandlerMapping`. It's possible
that users may have additional root handler mappings
registered to run after the `WelcomePageHandlerMapping`
and we still need to respect those.

Fixes gh-35559
2023-05-18 13:35:49 +01:00
Andy Wilkinson
8a5a7e110d Merge branch '2.7.x' into 3.0.x 2023-05-18 12:36:09 +01:00
Spring Builds
6103e81672 Next development version (v3.0.8-SNAPSHOT) 2023-05-18 11:11:27 +00:00