Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of yml without spring's small Leaf Mark by springboot

Shulou Source: shulou.com Published: 2022-06-01 03:35:07 10月02日 Update

Editor to share with you how springboot to solve the yml no spring small leaf logo problem, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

How to solve the problem that yml does not have the spring small leaf logo

There are two .yml files in my idea springboot project, an application.yml and a log4j2.yml, but only application.yml shows the leaf icon, as shown below

After making the following configuration, ok,ctrl+shift+alt+s goes to the following interface

Confirm all the way back after following the above picture, and log4j2.yml will finally display the leaf icon of spring! As shown in the following figure

Another reason why yml files do not have small leaves is recognized as txt by application.yml

cause

Without writing the yml suffix when creating the yml file, idea automatically popped up the file type option, and then casually wrote .yml without thinking about it.

I thought it would be all right, but such an operation would make idea think that owning the name application.yml is a txt file, and then look for posts online with the following search terms:

Why does yml have the leafy wood?

Why isn't yml green?

Most of the answers given are to modify it in moudle, but my question here should be modified as follows in setting

Just remove the application.yml

The above is all the content of this article "how to solve the problem of yml without spring's small leaf logo by springboot". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Files leaves questions logos articles content icons most leaves done picture above not much two reasons only names suffixes lobules more interface Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Microsoft MySQL Apple MariaDB