mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.0.x'
This commit is contained in:
+2
-3
@@ -17,7 +17,6 @@
|
||||
package smoketest.restclient;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tools.jackson.databind.DeserializationFeature;
|
||||
@@ -39,8 +38,8 @@ class SampleRestClientApplicationGh49223Tests {
|
||||
@Test
|
||||
void applicationStarts() {
|
||||
RestClient restClient = this.restClientBuilder.build();
|
||||
List<?> messageConverters = (List<?>) Objects
|
||||
.requireNonNull(ReflectionTestUtils.getField(restClient, "messageConverters"));
|
||||
List<?> messageConverters = (List<?>) ReflectionTestUtils.getField(restClient, "messageConverters");
|
||||
assertThat(messageConverters).isNotNull();
|
||||
JacksonJsonHttpMessageConverter jacksonConverter = (JacksonJsonHttpMessageConverter) messageConverters.stream()
|
||||
.filter((converter) -> converter instanceof JacksonJsonHttpMessageConverter)
|
||||
.findFirst()
|
||||
|
||||
+1
@@ -56,5 +56,6 @@ application {
|
||||
bootBuildImage {
|
||||
archiveFile = distZip.archiveFile
|
||||
runImage = "paketobuildpacks/ubuntu-noble-run:latest"
|
||||
imagePlatform = "linux/amd64"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
|
||||
}
|
||||
|
||||
+1
@@ -48,6 +48,7 @@ war {
|
||||
bootBuildImage {
|
||||
archiveFile = war.archiveFile
|
||||
runImage = "paketobuildpacks/ubuntu-noble-run:latest"
|
||||
imagePlatform = "linux/amd64"
|
||||
environment = [
|
||||
'BP_JVM_VERSION': java.targetCompatibility.getMajorVersion(),
|
||||
'BP_TOMCAT_VERSION': '11.*',
|
||||
|
||||
Reference in New Issue
Block a user