Код: Выделить всё
Unrecognized field "Blob" (class com.example.blobstorage.dto.Blobs), not marked as ignorable (one known property: "list"])
Код: Выделить всё
mainfolder/test_files/test1.pdf
Wed, 28 Feb 2024 09:28:38 GMT
Wed, 28 Feb 2024 09:28:38 GMT
0x8DC383FA5196A4E
187394
application/pdf
HQWmDd6EBngY05LPdwQv9A==
BlockBlob
Hot
true
unlocked
available
true
mainfolder/test_files/test2.pdf
Wed, 28 Feb 2024 09:28:38 GMT
Wed, 28 Feb 2024 09:28:38 GMT
0x8DC383FA5191C39
177902
application/pdf
Z2nVrakvUEHHFuhnAk/bpg==
BlockBlob
Hot
true
unlocked
available
true
Код: Выделить всё
EnumerationResults enumerationResults = xmlMapper.readValue(s, EnumerationResults.class); // s is the XML in string format.
EnumerationResults.java
Код: Выделить всё
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class EnumerationResults implements Serializable {
public Blobs Blobs;
}
Код: Выделить всё
@Data
public class Blobs implements Serializable {
public List list;
}
Код: Выделить всё
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Blob implements Serializable {
public String Name;
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... ml-content