title: How to define a map in a YAML file for simple POJO?
body: <p>I am using <a href="https://bitbucket.org/snakeyaml/snakeyaml" rel="nofollow noreferrer">SnakeYAML</a> to parse certain configuration/property values to a Configuration object (defined below).</p>
  <p>My YAML file looks like this:</p>
  <pre><code># Thread
  batchLimit: 1000
  threadCountLimit: 2
  
  # Some more config
  key: value
  
  # Map
  keyMapping: &lt;What goes here?&gt;
  </code></pre>
  <p>My Configuration class looks like this:</p>
  <pre><code>public class Configuration{
    int batchlimit;
    int threadCountLimit;
    ...
    Map&lt;String,String&gt; keyMapping;
  }
  </code></pre>
  <p>How do I define the <code>keyMapping</code> in the YAML file so it can be parsed directly by SnakeYAML?</p>