I use snakeYaml to parse specific configuration values ββ/ properties for a Configuration object.
My yaml file looks like this:
#Thread batchLimit: 1000 threadCountLimit: 2 #Some More Config key: value #MAP keyMapping: <What goes here?>
My configuration class is as follows:
public class Configuration{ int batchlimit; int threadCountLimit; ... Map<String,String> keyMapping; }
How to define keyMapping in a YAML file so that it reads directly through SnakeYAML?
source share