How to configure Micronaut 4.x to accept application.yml file instead of application.properties file?

73 Views Asked by At

I am using Micronaut 4.3.2, and it doesn't seem to be able to read application.yml file as default, only application.properties. Is there a setting somewhere to enable that?

Doesn't seems like anyone else is running into that issue.

1

There are 1 best solutions below

0
saw303 On BEST ANSWER

Add YAML support to your build. In Micronaut 4, Snakeyaml is an optional dependency.

runtimeOnly("org.yaml:snakeyaml")