Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report