Concept Flow - @Profile for environment-specific beans
Start Application
Check Active Profiles
Match Bean @Profile?
No→Skip Bean
Yes
Register Bean in Context
Use Bean in Application
Application Runs with Correct Beans
The application starts, checks which profiles are active, registers only beans matching those profiles, and uses them during runtime.