Commit Graph

19581 Commits

Author SHA1 Message Date
Moritz Halbritter 46f09be1c0 Merge branch '2.7.x'
Closes gh-33753
2023-01-11 11:30:37 +01:00
Moritz Halbritter 0c65c41adf Polish 2023-01-11 11:29:58 +01:00
Moritz Halbritter 7a148747a0 Fix NPE in RabbitProperties if user is given but password is not
Closes gh-33752
2023-01-11 11:13:51 +01:00
Moritz Halbritter fe1c1edcd4 Change transient to volatile in CompositeHandlerExceptionResolver 2023-01-11 10:52:48 +01:00
Moritz Halbritter 90a6d514a3 Fix assertions in ValidationAutoConfigurationTests 2023-01-11 10:51:29 +01:00
Moritz Halbritter c5b5449a07 Fix assertions in ThreadDumpEndpointTests 2023-01-11 10:48:57 +01:00
Moritz Halbritter 17d4fb1e60 Fix HTTP/2 documentation
Closes gh-33734
2023-01-10 16:01:13 +01:00
Phillip Webb 29b7c121fb Merge branch '2.7.x'
Closes gh-33739
2023-01-09 19:01:57 -08:00
Phillip Webb a369f936c9 Replace references to Pivotal
Closes gh-33737
2023-01-09 18:09:20 -08:00
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
2023-01-09 16:57:56 -08:00
Phillip Webb a2ac38e203 Update copyright year of changed files 2023-01-09 15:46:07 -08:00
Phillip Webb 1621cfd578 Merge branch '2.7.x' 2023-01-09 15:44:44 -08:00
Phillip Webb 80cfcb71ec Update copyright year of changed files 2023-01-09 15:18:10 -08:00
Phillip Webb 232807d388 Increase block timeout 2023-01-09 15:17:47 -08:00
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
2023-01-09 14:41:41 -08:00
Moritz Halbritter 5a70422d1d Add reference to Spring Authorization Server project 2023-01-09 15:26:40 +01:00
Moritz Halbritter 56b51d01a7 Clarify that AOT uses code generation 2023-01-09 15:26:20 +01:00
Moritz Halbritter 3c45a805f5 Polish documentation 2023-01-09 15:25:51 +01:00
Moritz Halbritter 648db6d1ea Remove reference to spring-cli run command from documentation 2023-01-09 15:25:27 +01:00
Moritz Halbritter 9e414fa263 Update minimum required maven version to 3.5 in documentation 2023-01-09 15:24:53 +01:00
Moritz Halbritter c0728e1288 Polish documentation 2023-01-09 15:24:26 +01:00
Moritz Halbritter 5a97c1493e Update Java 11 to Java 17 in documentation 2023-01-09 15:24:16 +01:00
Moritz Halbritter 7922ac63bc Polish documentation 2023-01-09 15:23:27 +01:00
Moritz Halbritter 1e70822adb Fix javax with jakarta references in documentation 2023-01-09 12:46:02 +01:00
Moritz Halbritter 3b6b795c9f Merge branch '2.7.x'
Closes gh-33729
2023-01-09 12:39:42 +01:00
rishal c84399e705 Add toString method for EndpointRequestMatcher
See gh-33690
2023-01-09 12:34:43 +01:00
Sanan f291695bda Remove run example from documentation
See gh-33519
2023-01-09 12:20:46 +01:00
rfigueroa 2b3a24be18 Update dockerfile samples to use Java 17
See gh-33629
2023-01-09 12:17:44 +01:00
Moritz Halbritter 6a6ecad325 Merge branch '2.7.x'
Closes gh-33728
2023-01-09 12:13:36 +01:00
Joseph Lane 54754d2c7a Fix typo in External Configuration documentation
See gh-33630
2023-01-09 12:12:50 +01:00
Krzysztof Krason cf6493f65c Simplify AssertJ assertions and also make them more readable
See gh-33653
2023-01-09 11:10:20 +01:00
Anugrah Singhal 3191c678c3 Remove Jetty/Netty/ApacheHttpClient checks for WebClient
See gh-33640
2023-01-09 10:43:44 +01:00
Moritz Halbritter f11de0c4cf Merge branch '2.7.x'
Closes gh-33726
2023-01-09 10:39:14 +01:00
Bart aa8a531731 Fix a type in the ExitCodeGenerator documentation
See gh-33658
2023-01-09 10:38:32 +01:00
Moritz Halbritter b641073777 Merge branch '2.7.x'
Closes gh-33725
2023-01-09 10:35:50 +01:00
Christoph Dreis 1b4ef5db0f Update copyrights to 2023
See gh-33682
2023-01-09 10:35:07 +01:00
Kaveh Shamsi 2d95e4a31e Fix JavaDoc typo in LocalServerPort
See gh-33683
2023-01-09 10:27:40 +01:00
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
2023-01-06 17:23:03 -08:00
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
2023-01-06 18:15:31 +00:00
Phillip Webb 5ec5007bf0 Merge branch '2.7.x'
Closes gh-33706
2023-01-05 17:21:34 -08:00
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
2023-01-05 13:56:58 -08:00
Phillip Webb f588793445 Update copyright year of changed files 2022-12-22 01:00:42 -08:00
Phillip Webb 0254619782 Merge branch '2.7.x' 2022-12-22 00:59:40 -08:00
Phillip Webb e4772cf3b7 Update copyright year of changed files 2022-12-22 00:59:32 -08:00
Phillip Webb 2e7ca6f82d Warning if <springProfile> is used in phase 2 model elements
Add `SpringProfileIfNestedWithinSecondPhaseElementSanityChecker` which
will provide a warning if `<springProfile>` is used within a phase 2
model element. This is similar to Logback's own `<if>` warnings.

The `LogbackLoggingSystem` has also been updated so that warning are
printed when present.

Fixes gh-33610
2022-12-22 00:57:59 -08:00
Phillip Webb 2ed512ddb5 Use model.deepMarkAsSkipped in SpringProfileModelHandler
Switch `model.markAsSkipped` to `model.deepMarkAsSkipped` in
`SpringProfileModelHandler`.

Although the current call doesn't appear to be causing issues,
it seems best to align our <springProfile> support with the way
that Logback implements its own `<if>` support.

Closes gh-33618
2022-12-22 00:54:06 -08:00
Phillip Webb 532fed3147 Increase couchbase connection timeout for tests 2022-12-22 00:49:04 -08:00
Phillip Webb 6367a8c62c Merge branch '2.7.x' 2022-12-21 22:54:01 -08:00
Phillip Webb 5ba52d0000 Polish formatting 2022-12-21 22:53:54 -08:00
Phillip Webb e57824fb58 Merge branch '2.7.x'
Closes gh-33617
2022-12-21 22:52:59 -08:00