Is there a way to get the names of all the configuration properties in Spring boot?

I am really new to Spring. I am using the external configuration function provided by spring boot. It works well, and I used it in several configuration classes, often only with default values. Now I want to get an overview of the configuration properties that I used. This means that I need to know all the properties set using @Value(...) or or using @ConfigurationProperties(prefix = ...) . Is there any way to get this information from Spring? I can do it with thought, but I think this is not the best way.

+5
source share
1 answer

If you use STS , then there is a special editor for the application.properties file with automatic completion. If you use Eclipse, you must go to the class you want to configure and check the @Value annotations in the code.

0
source

Source: https://habr.com/ru/post/1247946/


All Articles