Steven McLaughlin
12/07/2018, 4:01 PMval mapper = ObjectMapper(YAMLFactory())
mapper.registerModule(KotlinModule())
FileInputStream("${System.getProperty("user.dir")}/src/main/resources/config.yml").use {
mapper.readValue(it, ConfigDto::class.java)
}
This works fine when I'm running within my IDE, but when I jar it up and try to run the jar it obviously doesn't work. I figured I'd reach out here to see if anyone know of a good way to read data from that properties file just by calling java -jar foo.jar