IDEA が新しい Springboot プロジェクトを作成して外部構成と理解できない最終的な解決策をロードするときの問題を記録する

必要:

To create a new springboot project using Idea, you need to use a external configuration file.
ここに画像の説明を挿入
全体のディレクトリ構造は次のとおりです。

Spring Boot启动会扫描以下位置的application.properties或者application.yml文件作为spring boot的默认配置文件
-file:/config/
-file:./
-classpath:

おすすめ

転載: blog.csdn.net/weixin_42551921/article/details/117809727#comments_24762399