Spring Boot – @ConfigurationProperties Annotation Example

You may also like...

  • Anqit Praqash

    Where is the max value constraint being set?

    • 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

        Got it, thanks!