Spring Boot – @ConfigurationProperties Annotation Example

You may also like...

3
Leave a Reply

avatar
1 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
Anqit PraqashMemorynotfound.com Recent comment authors
  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!