Backend Development
Spring Boot
Subjective
Oct 03, 2025
What is @ConfigurationProperties? Provide example.
Detailed Explanation
@ConfigurationProperties binds external properties to POJO:\n\n@ConfigurationProperties(prefix="app")\npublic class AppProperties {\n private String name;\n private String version;\n // getters and setters\n}\n\napplication.properties:\napp.name=MyApp\napp.version=1.0
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts