Phillip Webb
84b13f0748
Refine constructor detection logic when binding to existing values
...
Update `DefaultBindConstructorProvider` so that deduced constructors
are not used if there is an existing value.
Prior to this commit, constructor detection logic was not compatible
with earlier versions of Spring Boot. With Spring Boot 3.0.1, given
a class of the following form:
@ConfigurationProperties(prefix = "example")
public class ExampleProperties {
@NestedConfigurationProperty
private final NestedProperty nested = new NestedProperty(
"Default", "default");
public NestedProperty getNested() {
return nested;
}
}
If `NestedProperty` has a single constructor with arguments, constructor
binding would be used. In Spring Boot 2.x, setter injection would have
been used.
The updated code now only uses constructor injection if an explicit
`@ConstructorBinding` annotation is present, or if there is no existing
value.
Fixes gh-33409
See gh-33710
2 years ago
Phillip Webb
a2ac38e203
Update copyright year of changed files
2 years ago
Phillip Webb
1621cfd578
Merge branch '2.7.x'
2 years ago
Phillip Webb
80cfcb71ec
Update copyright year of changed files
2 years ago
Phillip Webb
232807d388
Increase block timeout
2 years ago
Phillip Webb
6a0a61f1ce
Refine EndpointRequest matcher `toString` and apply to reactive variant
...
Refine the recently introduced `EndpointRequest` matcher `toString()`
to use lower-case item names. Also applied the same logic to the
reactive variant.
See gh-33690
2 years ago
Moritz Halbritter
5a70422d1d
Add reference to Spring Authorization Server project
2 years ago
Moritz Halbritter
56b51d01a7
Clarify that AOT uses code generation
2 years ago
Moritz Halbritter
3c45a805f5
Polish documentation
2 years ago
Moritz Halbritter
648db6d1ea
Remove reference to spring-cli run command from documentation
2 years ago
Moritz Halbritter
9e414fa263
Update minimum required maven version to 3.5 in documentation
2 years ago
Moritz Halbritter
c0728e1288
Polish documentation
2 years ago
Moritz Halbritter
5a97c1493e
Update Java 11 to Java 17 in documentation
2 years ago
Moritz Halbritter
7922ac63bc
Polish documentation
2 years ago
Moritz Halbritter
1e70822adb
Fix javax with jakarta references in documentation
2 years ago
Moritz Halbritter
3b6b795c9f
Merge branch '2.7.x'
...
Closes gh-33729
2 years ago
Moritz Halbritter
29b7e518a5
Merge pull request #33690 from devrishal
...
* pr/33690:
Add toString method for EndpointRequestMatcher
Closes gh-33690
2 years ago
rishal
c84399e705
Add toString method for EndpointRequestMatcher
...
See gh-33690
2 years ago
Moritz Halbritter
46c799d857
Merge pull request #33519 from sannanansari
...
* pr/33519:
Remove run example from documentation
Closes gh-33519
2 years ago
Sanan
f291695bda
Remove run example from documentation
...
See gh-33519
2 years ago
Moritz Halbritter
7cdf3f432f
Merge pull request #33629 from rfigueroa
...
* pr/33629:
Update dockerfile samples to use Java 17
Closes gh-33629
2 years ago
rfigueroa
2b3a24be18
Update dockerfile samples to use Java 17
...
See gh-33629
2 years ago
Moritz Halbritter
6a6ecad325
Merge branch '2.7.x'
...
Closes gh-33728
2 years ago
Moritz Halbritter
a3cd2dc539
Merge pull request #33630 from josephlane
...
* pr/33630:
Fix typo in External Configuration documentation
Closes gh-33630
2 years ago
Joseph Lane
54754d2c7a
Fix typo in External Configuration documentation
...
See gh-33630
2 years ago
Moritz Halbritter
c837429df3
Merge pull request #33653 from krzyk
...
* pr/33653:
Simplify AssertJ assertions and also make them more readable
Closes gh-33653
2 years ago
Krzysztof Krason
cf6493f65c
Simplify AssertJ assertions and also make them more readable
...
See gh-33653
2 years ago
Moritz Halbritter
c9a2b2ab66
Merge pull request #33640 from anugrahsinghal
...
* pr/33640:
Remove Jetty/Netty/ApacheHttpClient checks for WebClient
Closes gh-33640
2 years ago
Anugrah Singhal
3191c678c3
Remove Jetty/Netty/ApacheHttpClient checks for WebClient
...
See gh-33640
2 years ago
Moritz Halbritter
f11de0c4cf
Merge branch '2.7.x'
...
Closes gh-33726
2 years ago
Moritz Halbritter
7d1ce38696
Merge pull request #33658 from BartR96
...
* pr/33658:
Fix a type in the ExitCodeGenerator documentation
Closes gh-33658
2 years ago
Bart
aa8a531731
Fix a type in the ExitCodeGenerator documentation
...
See gh-33658
2 years ago
Moritz Halbritter
b641073777
Merge branch '2.7.x'
...
Closes gh-33725
2 years ago
Moritz Halbritter
0f3c18bdb8
Merge pull request #33682 from dreis2211
...
* gh/33682:
Update copyrights to 2023
Closes gh-33682
2 years ago
Christoph Dreis
1b4ef5db0f
Update copyrights to 2023
...
See gh-33682
2 years ago
Moritz Halbritter
b1c65a0131
Merge branch '2.7.x'
...
Closes gh-33724
2 years ago
Moritz Halbritter
6b6961e252
Merge pull request #33683 from kvmw
...
* pr/33683:
Fix JavaDoc typo in LocalServerPort
Closes gh-33683
2 years ago
Kaveh Shamsi
2d95e4a31e
Fix JavaDoc typo in LocalServerPort
...
See gh-33683
2 years ago
Moritz Halbritter
6e07189a45
Merge branch '2.7.x'
...
Closes gh-33723
2 years ago
Moritz Halbritter
0c04d4804e
Merge pull request #33708 from sannanansari
...
* pr/33708:
Use Maven Central for SDKMAN download
Closes gh-33708
2 years ago
Sanan
b0e0731463
Use Maven Central for SDKMAN download
...
See gh-33708
2 years ago
Phillip Webb
2e90b71c30
Do not attempt constructor binding for items with an existing value
...
Update `DefaultBindConstructorProvider` so that it no longer detects
constructors when the `Bindable` has an existing value. This update
allows us change `ConfigurationPropertiesBindingPostProcessor` and
related classes so that all instances created from `@Bean` methods
are treated as `JAVA_BEAN` bindings and will not be accidentally
re-created using constructor binding.
Fixes gh-33710
2 years ago
Andy Wilkinson
2d372edcfc
Fix Homebrew formula's install --head support
...
This commit updates the Homebrew formula's install --head support to
use the main branch (rather than the default of master) and to build
the project using Gradle rather than trying to use Maven.
Closes gh-33704
2 years ago
Andy Wilkinson
8fa318453f
Merge branch '2.7.x'
...
Closes gh-33714
2 years ago
Andy Wilkinson
44c201eeff
Upgrade to Gradle Enterprise Conventions 0.0.13
...
Closes gh-33713
2 years ago
Phillip Webb
5ec5007bf0
Merge branch '2.7.x'
...
Closes gh-33706
2 years ago
Phillip Webb
68af379714
Don't use repo.spring.io in released Homebrew or Scoop recipes
...
Update our Homebrew and Scoop recipes to use `repo1.maven.org` rather
than `repo.spring.io` for releases.
Fixes gh-33702
2 years ago
Phillip Webb
0d9967c70c
Polish
2 years ago
Andy Wilkinson
3bcc7ece55
Merge branch '2.7.x'
...
Closes gh-33676
2 years ago
Andy Wilkinson
84c021bc97
Upgrade to Gradle Enterprise Gradle Plugin 3.12.1
...
Closes gh-33672
2 years ago