Spring Boot – @ConfigurationProperties Annotation Example

You may also like...

Leave a Reply

3 Comments on "Spring Boot – @ConfigurationProperties Annotation Example"

avatar
  Subscribe  
newest oldest
Notify of
Anqit Praqash
Guest
Anqit Praqash

Where is the max value constraint being set?

Memorynotfound.com
Guest
Memorynotfound.com

Hello,

You can annotate any configuration properties using the javax.persistence api annotations.
I added the @Max(1000) to the ‘ttl’ property for testing purposes, but omitted it in the tutorial.

I’ll update the tutorial and add the annotation

Kr,
Memorynotfound

Anqit Praqash
Guest
Anqit Praqash

Got it, thanks!