When I first use SpringBoot, I will definitely encounter this problem:
Why does idea not support yml?
Why is there no prompt for idea's yml file?
Why does idea's yml not recognize?
The first question answer
1. Install YAML plug-in
2. Find File Types in Settings and then look for YAML to see if there is a yml suffix name
Why is there no prompt in the second question?
1. Install the plugin SnakeYAML plugin
The third question: a big pit!
The above problems still cannot be solved, then
1. Check the structure of your project. Is your resource a folder or a resource package?
2. Is it an idea that does not recognize that your project is a springboot project
Enter https://start.spring.io/ here to enter GroupID and ArtifactID to export the project and add it to the idea project and then change the generated application.properties file to application.yml.
Summarize
The above is the solution introduced by the editor to solve the problem that idea does not support SpringBoot yml files. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!