Spring 3.5.x gibt an, dass „Name“ nach dem Upgrade von Spring 3.4.x nicht null sein darfJava

Java-Forum
Anonymous
 Spring 3.5.x gibt an, dass „Name“ nach dem Upgrade von Spring 3.4.x nicht null sein darf

Post by Anonymous »

Ich habe diese verkürzte Yaml-Konfigurationsdatei erhalten:

Code: Select all

apiconfiguration:
apiList:
-
queryParameters:
- something
Das ist meine Java-Klasse:

Code: Select all

@Getter
@Setter
public class ApiConfig {
private List queryParameters = Collections.emptyList();
}
Nach dem Upgrade von Spring Boot auf 3.5.x (Beispiel 3.5.7) erhalte ich diese Fehlermeldung:

Code: Select all

Caused by: org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'apiconfiguration.api-list[0].query-parameters' to java.util.List
at org.springframework.boot.context.properties.bind.Binder.handleBindError(Binder.java:399)
at org.springframework.boot.context.properties.ConfigurationPropertiesBinder.bind(ConfigurationPropertiesBinder.java:94)
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.bind(ConfigurationPropertiesBindingPostProcessor.java:96)
... 60 more
Caused by: java.lang.IllegalArgumentException: 'name' must not be null
Weiß jemand, wie man dieses Problem beheben kann?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post