🎯 Key points for quick navigation: 24:38 *You can use the `@Profile` annotation to specify beans for different environments in Spring.* 24:53 *Multiple profiles can be specified using comma-separated values, but only one profile will be picked based on the order in the configuration.* 25:07 *When multiple profiles are active, beans for both profiles may be initialized, but the profile at the end of the list is the one that is selected.* 25:47 *Changing the order of active profiles will change which configuration is picked, as the profile at the end is given priority.* 26:03 *If both `Dev` and `Prod` profiles are active, the beans marked with both profiles are injected based on the profile order.* 26:31 *You can externalize configuration using the command line to specify multiple profiles, influencing which properties are injected based on their order.* 27:14 *The `@Profile` annotation is essential for managing environment-specific configurations in Spring Boot applications.* Made with HARPA AI
@venkatchundru984425 күн бұрын
🎯 Key points for quick navigation: 24:24 *The `@Profile` annotation is used to conditionally inject beans based on the active Spring profile.* 24:38 *You can specify multiple profiles in the `spring.profiles.active` property, but only one profile at the end will be applied.* 25:07 *When multiple profiles are active, the profile listed last in the properties file takes precedence.* 26:03 *Changing the order of profiles in the configuration file affects which profile's beans are injected.* 26:18 *Both profiles can be active at the same time, leading to the injection of beans from both profiles.* 26:46 *Profiles can be specified externally, allowing you to use different configurations for different environments.* 27:14 *The `@Profile` annotation enables the use of different configurations for different environments in Spring Boot applications.* Made with HARPA AI
@acharan79738 күн бұрын
I think when we use @Profile on a particular class, the bean for that particular class will be created in the context-container if we select that particular profile rather than saying we are initializing it. Correct me if i am wrong.
@rollno.66bmsvatikatiwari912 ай бұрын
Perfect video to prepare for interview
@CodeSnippetByChetanGhate2 ай бұрын
🙌
@AnkitKumar-se8fv6 ай бұрын
Crystal clear video bhaiya, loving this series
@CodeSnippetByChetanGhate6 ай бұрын
Thanks bhai ♥️
@shamimahamed83334 ай бұрын
You can make some lectures over spring, because you are the best❤❤❤
@CodeSnippetByChetanGhate4 ай бұрын
Thanks 🙏
@prathameshchaudhari13376 ай бұрын
Keep it Up, Short-Simple-On_Point 👍
@CodeSnippetByChetanGhate6 ай бұрын
Sure, Thanks 🙏 ♥️❤️
@AshVlogs-2246 ай бұрын
That's the perfect and clear one..!
@CodeSnippetByChetanGhate6 ай бұрын
Thanks 🙏
@Abdullah-i6n3w6 ай бұрын
Keep up your good work brother 👌👌👌👌
@CodeSnippetByChetanGhate6 ай бұрын
Thanks bro ❤️
@anushakollikonda83632 ай бұрын
It is also we need to change right
@balamanikandank30166 ай бұрын
Good work brother🔥
@CodeSnippetByChetanGhate6 ай бұрын
Thanks bro ❤️
@abhishekbs40986 ай бұрын
Very useful
@CodeSnippetByChetanGhate6 ай бұрын
Thanks
@mohitshoww6 ай бұрын
Nice , How can i manage different snapshot repositories or release repositories based on profile , is there any way ?
@CodeSnippetByChetanGhate5 ай бұрын
Yes, you can manage different snapshot or release repositories based on profiles in Spring Boot by using Maven's profile feature. Define different profiles in your pom.xml file for each environment, specifying the repository settings. Then, activate the appropriate profile when building your project.
@mohitshoww5 ай бұрын
@@CodeSnippetByChetanGhatecan u please make one short video or small video on this it will be helpful
@CodeSnippetByChetanGhate5 ай бұрын
@@mohitshoww sure
@Raksha08276 ай бұрын
Create more spring boot classes
@truth_teller964827 күн бұрын
Please don't use RIGHT after every sentence. 🙏 Everything else is very good 🙏 Keep doing more videos.
@CodeSnippetByChetanGhate27 күн бұрын
Sure thanks 🙏
@Sumeshkumarback6 ай бұрын
Try to clear the concept below 20 minutes. I mean create short content
@CodeSnippetByChetanGhate6 ай бұрын
Sure. Perhaps you can also increase the video speed to 1.5x
@Sumeshkumarback6 ай бұрын
@@CodeSnippetByChetanGhate why my comments got Removed
@livannani22536 ай бұрын
@@CodeSnippetByChetanGhate😂
@sopparikrishna1736 ай бұрын
After This Make Videos On Security Also Brother, I have watched so many videos I didn't get it but the way of explanation very understandable brother 🫡🫡