very nice explanation. can you please make video how spring service singleton class will behave at concurrent requests
@letsengineer367
4 жыл бұрын
If we mark a class as @Service, it essentially marks a simple Java class as a service provider and creates a bean of it. The scope of that bean is singleton by default. This however, doesn't guarantee that all components inside the class are thread safe. You would explicitly want to make all those components thread safe which you think can result in data inconsistency.
@Refinedsid
4 жыл бұрын
my concepts got so much clearer after watching your video... it literally opened my eyes..
@srinuvasureddy2270
2 жыл бұрын
Very clear explanation. God bless u.
@yogeshdhavan1550
2 жыл бұрын
Voice is still not clear
@sinemergingtechnologies8209
2 жыл бұрын
Why did the constructor disappear? It's there at 2:19 but gone at 5:56. Thank you for the walkthrough!
@harish1937
Жыл бұрын
Because if we write constructor which takes arguments then we would have to pass arguments while creating the object like "new Student(20)" since we are using autowiring here we cant do that instead of that he is using setAge() method to set age value thats why he has removed that at 5:56
Пікірлер: 11