Spring Boot: Provided Properties

This post is abbreviated because of the holidays! But here’s a little tidbit about spring boot properties, since we’ve been talking about that lately.

Spring Boot provides certain preset properties, such as “server.port”. A reasonable question is “What are all the properties that it provides?

The answer, as noted in the link, is that there is no master list because it’s subject to changes in the code. But you can generally find the preset properties in the system by looking in the codebase like so:

git clone https://github.com/spring-projects/spring-boot
grep -r –include="*.java" "@ConfigurationProperties" .
grep -r –include="*.java" "@Value" .

Happy Holidays!

Advertisements

Leave a comment

Filed under Software Engineering

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s