Relative Content

Tag Archive for javaspringspring-boot

Spring @ConfigurationProperties and Prototype Scope Behavior

I’m working with Spring Boot and I have a class annotated with @ConfigurationProperties to bind external configuration properties. By default, when the application starts, Spring creates a singleton instance of this class, and this same instance is returned for each request, which is expected behavior.