3-6 Years Interview Experience | Java | Spring Boot | Microservices | SQL
Insights Instructor · 3,298 words · 16 min read · EN

Below is the complete, readable transcript of 3-6 Years Interview Experience | Java | Spring Boot | Microservices | SQL by Insights Instructor on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
okay how do you handle multiple beans at the same time in Spring boot yeah so this can be done using two ways so one is using at the rate of qualifier and second one is using at theate of primary annotation so using at the rate of qualifier basically lets us specify uh which Bean uh we want to
inject so so suppose we have multiple beans which is qualified to be injected so at the of qualifier and inside that we can give the name of that qualifier So based on that it is decided that uh which Bean has to be injected and uh second one is using uh at the rate of primary so uh if we have
the multiple beans of the same time so like primary one is the default one so uh whenever this situation happens then the default wherever this primary annotation is marked so that will be uh injected okay okay is there any other way is also there uh other way I'm not sure okay using custom
annotation okay first of all do you know how do we create the custom notation in Spring boot Yeah so basically basically uh the way we create the interface and classes similarly we can we have the option of creating The annotation and um uh basically when we create The annotation then at the rate of interface
uh so that is generated and uh so we can Define the uh constraints and the corresponding class we can mention there and in that class we can uh write our Logic for the validation so this is how we uh write the custom annotation okay can you explain me this with an example uh
example so let's say uh we have to validate the uh there let's say we have one employee uh class so in that we have multiple fits like employee name uh employee age employee salary and similarly we have one more field let's say employee type and uh uh we want to validate that field as well so we know
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.