not read application.conf file: ```cfg { test =3...
# ktor
b
not read application.conf file:
Copy code
cfg {
  test =3
}
code:
Copy code
fun main() {
 println(HoconApplicationConfig(ConfigFactory.load()).config("cfg").property("test").getString())

 embeddedServer(CIO) {
  println(environment.config.config("cfg").property("test").getString())
 }.start(true)
}
output (
gradle run
):
Copy code
3
Exception in thread "DefaultDispatcher-worker-3 @coroutine#1" io.ktor.config.ApplicationConfigurationException: Property cfg.test not found.
	at io.ktor.config.MapApplicationConfig.property(MapApplicationConfig.kt:52)
Tell me what can I do wrong?