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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2c19f-2baf3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2c19f-2baf3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?