application.yml vs application.properties for Spring Boot

Well, they are just different data formats. Which one’s nicer and easier to read? That’s obviously subjective. Here’s a useful blog post.

As far as spring-boot configuration is concerned, note that there’s only one documented shortcoming of using YAML. Per the documentation:

YAML files can’t be loaded via the @PropertySource annotation. So in the case that you need to load values that way, you need to use a properties file.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)