All your material is so easy to follow and comprehensible. Thanks to you I finally feel like a I have the ability to actually understand Spring. Thanks so much.
@AyratVideo Жыл бұрын
Nice smile! So look as Alex ) And great stuff! Best explanation ever! Thanks so much.
@pawenowinski20722 жыл бұрын
Great job ! FInally get it ! Thanks : )
@iSkvort4 жыл бұрын
One note it uses CGLib only if you have classes. If your beans are implements interface then spring creates a dynamic proxy for bean which is much faster than cglib.
@alexsav74274 жыл бұрын
Thanks for the explanation. I finally understood.
@rahulshivhare56824 жыл бұрын
What's the Difference in manual and spring initiated propagation ?
@amargupta17284 жыл бұрын
Hi, Nice I but just want to know that why proxy objects will be created for calling transactional?
@GuitarreroDaniel4 жыл бұрын
I think is a lot easier to set up your DataSource in application.properties than inside a class. Just makes everything look much cleaner.
@chukwuebukag.anazodo69155 жыл бұрын
Hi Marco, Does Transactional annotation also handle race condition problems
@MarcoBehler5 жыл бұрын
Hi Chukwuebuka, what kind of race condition problems are you thinking about? Transactional really just opens a databaser transaction, that's it. So it all depends on your isolation levels.
@chukwuebukag.anazodo69155 жыл бұрын
@@MarcoBehler Does is lock a row or entire table until the transaction is committed?
@josephmbimbi3 жыл бұрын
the dislike / like ratio is unfair i think. That is a great video
@neetigupta54685 жыл бұрын
nice explanation 👌 thanks
@LvyZ6665 жыл бұрын
Creepy smile at the beginning. Good stuff nonetheless!
@MarcoBehler5 жыл бұрын
Takes a while to get to an authentic smile in front of a camera :D
@seyedalihejazi49264 жыл бұрын
but lovable
@OzoneGrif6 жыл бұрын
When you write the transactionManager, shouldn't you inject the database bean, instead of calling database() directly? It feels like you instance two database driver here.
@MarcoBehler6 жыл бұрын
That's a good question! The answer is that spring does some magic here, i.e. whenever it creates your configuration class, it actually creates a cglib proxy of that class which basically "caches" every method invocation. That's why there won't be multiple instances of the data source, only one, even if you call the method directly, instead of injecting
@mkyrychenko5 жыл бұрын
@@MarcoBehler but you will be not able to mock the database bean and inject it as parameter, if you need this... Better approach IMHO is to inject in order to have controlled and easy mockable call flow
@zakb.71084 жыл бұрын
I was actually asking myself the same question when finding those method calls on the books, seems like spring "proxy" calls and you'll get the same instance every time.
@Dev_pig5 жыл бұрын
Oh, cglib is used by spring. Thank u for your great tutorial :)
@MarcoBehler5 жыл бұрын
There you go :) Glad you like it
@Chesteryoshka5 жыл бұрын
only if it can't use proxy based on interfaces
@gudurusivareddy63635 жыл бұрын
awesome
@rrr833 жыл бұрын
Thanks for the explanation! You should put your own udemy course to get more audience!