Search code examples
javaspring-bootintellij-ideaapplication.properties

How can I see where the properties in application.properties file refer to?


I have some lines inside my application.properties like

logging.level.com.website.project.mapper=INFO

I want to see where this value is actually used to understand everything about it. Can IntelliJ somehow bring me to where it is used? Or does the programmer have to know all about the properties by himself?


Solution

  • Press CTRL+SHIFT+F in your IntelliJ, switch to Scope directory and set All Places. After that, you can paste a property name in search box. After that, you can see all usage of property. enter image description here

    Sometimes properties name are assigned to variables, so after when you find it, you need to also check this variable usage.