How to use @Profile annotation in a spring boot application

The @Profile annotation in Spring Boot is a powerful tool for managing different configurations within an application. It allows developers to define specific beans, components, or configurations that should be active only when certain profiles are active.