Have the list of complex objects in YML format:
Messages:
error1:
code: 0988
text: "error message1"
error2:
code: 0988
text: "error message2"
I need to map this structure to java class:
public class MessageProvider {
private Message error1;
private Message error2;
//getters, setters
public static class Message{
private String text;
private String code;
//getters, setters
}
}
Is it possible to map it by using spring boot capabilities ? If yes, I will be thankful for example.