title: Trying to get a list with the Typesafe config library
body: <p>I try to get a list from a config according to this example: <a href="https://stackoverflow.com/questions/17913215/how-to-get-a-list-with-the-typesafe-config-library">How to get a list with the Typesafe config library</a></p>
  
  <p>However, I get following exception:</p>
  
  <pre><code>Exception in thread "main" com.typesafe.config.ConfigException$WrongType: application.properties @ file:/xxx/application.properties: configYYY has type STRING rather than LIST
      at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:159)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:170)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
      at com.typesafe.config.impl.SimpleConfig.getList(SimpleConfig.java:252)
      at com.typesafe.config.impl.SimpleConfig.getHomogeneousUnwrappedList(SimpleConfig.java:323)
      at com.typesafe.config.impl.SimpleConfig.getStringList(SimpleConfig.java:381)
  </code></pre>
  
  <p>How can I get a list from typesafe? Below are my test code:</p>
  
  <pre><code>class Test extends FlatSpec {
    "Test" should "be about to get list" in {
  
      val configFactory = ConfigFactory.load();
      var disabledExtension = configFactory.getStringList("disabledExtension");
      assert(2==disabledExtension.size());
      assert(disabledExtension.get(0).equals("SH"));
      assert(disabledExtension.get(1).equals("ST"));
    }
  }
  </code></pre>
  
  <p>And below my application.properties:</p>
  
  <pre><code>disabledExtension = ["SH", "ST"]
  </code></pre>