The problem of setting Spring-Boot yml as configuration file under IDEA

use IDEA"s Spring Initializr to initialize Spring-Boot project defaults to application.properties as configuration file, and I want to use yml . After I create a new application.yml under resource , as shown below. The yml file has no input prompt. May I ask how to solve it, thank you: -)

clipboard.png

clipboard.png
idea Spring Initializr

yaml idea

clipboard.png

I would also like to thank several respondents for adopting the closest answer,:).


the easiest way

rename application.properties directly application.yml

just Ok


press Ctrl+Shift+Alt+S , and click Facets if you don't add spring support. You should be able to see it.


application.properties application.yml

application.yml ---> application.yaml


  1. .yaml.ymlFacets.yaml.yml
    clipboard.png

.yml.yaml

clipboard.png


  1. YAMLSnakeYAML plugin

clipboard.png
:
clipboard.png

you can try it now


personal solution!
http://www.cnblogs.com/kangka.


this so-called best Java development tool, why is it worse than Eclipse in some respects?

Menu