Spring Boot – @ConfigurationProperties Annotation Example

You may also like...

Subscribe
Notify of
guest
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Anqit Praqash
Anqit Praqash
May 31, 2017 14:16

Where is the max value constraint being set?

Memorynotfound.com
Memorynotfound.com
May 31, 2017 15:02
Reply to  Anqit Praqash

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
Anqit Praqash
June 2, 2017 00:19

Got it, thanks!

3
0
Would love your thoughts, please comment.x
()
x