Can´t change port with application.yml file, but it works in

In a Spring Boot application, when i change my server port in


it works perfectly. But when i try to use application.yml

  port : 9001

The port stay as 8080. I use eclipse. What could be the problem ?


Spring Documentation

The SpringApplication class will automatically support YAML as an alternative to properties whenever you have the SnakeYAML library on your classpath.

Do you have SnakeYAML in your classpath?