1
JavaBeginner#spring
Both configure application settings; properties uses flat key=value pairs while yml uses hierarchical, indentation-based syntax that's more readable for nested configuration, and both are functionally equivalent.
# application.properties
server.port=8080
spring.datasource.url=jdbc:mysql://localhost/db
# application.yml
server:
port: 8080
spring:
datasource:
url: jdbc:mysql://localhost/db