Great video can you please make some videos helping us in testing(Unit, Mock and Integration) and also some good practices on implementing Jwt with Spring security and a DB, and very happy having Dan vega, he is a great instructor, know him from his own youtube channel, by the way h also have gr8 content there
One thing I really want from spring is to auto-update the way angular does. Should be able to run a command spring update --fromVersion=2.4.5 --toVersion=2.5.9. As a developer that has to manage 20+ microservices would save so much time since it's not always straightforward like this.
What about reentrant calls that should follow AOP pointcuts, like @Transactional? Self-injection is very handy to enable reentrant calls to honor @Transactional, @Cacheable, @Retryable..., and disabling circular dependencies also disable self-injection, which is too bad.
@@ChrisB_Crisps @ruben nav OK, but how would you solve reentrant calls that need to go through AOP aspect (like @Transactional, @Cacheable, @Retryable...)? Would you use less readable aletrnative or artificially divide your service class into two classes using purely technical reasons (no business reason) just because reentrant calls in Spring do not take into account AOP aspects by default? This seems to me no good reason to do either just because of technical limitations... For me, reeentrant calls are valid in service classes as a type of functional reuse, not all reuse should be object-oriented. And if we have reentrant calls, then we sometimes need AOP aspects applied to them as well. Do you maybe think this is better and/or more readable: @Service @Cacheable public class MyService() { ... ... ((MyService) AopContext.currentProxy()).myMethod1(); ... ((MyService) AopContext.currentProxy()).myMethod2(); ... ((MyService) AopContext.currentProxy()).myMethod3(); Than this: @Service @Cacheable public class MyService() { ... @Autowired private MyService self; ... ... self.myMethod1(); ... self.myMethod2(); ... self.myMethod3(); I do not think so.
Thanks for the video, would using @Lazy approach for the circular references be a recommended way to fix these issues? Although I am worried that it may lead to runtime error...
I dont understand the Circular Issue . Why do we need to use @Lazy ? The are sometimes where this behavior is needed. Why you dont support Circular reference as always ?
@@RN-jo8zt PDF? well there is a web version you could take the pdf from there, this is the video version, would be stange to make the PDF version from the video version from the web version? or you want to print it to learn the basics?
In Records and Configuration properties it seemed like it’s complaining about non existing bean of type String as it’s trying to do constructor injection not exactly that it doesn’t know about constructor
It was expecting the 1st argument to the constructor to be of type String but nothing was getting passed to the constructor when we are using setters to the set the values. The @ConstructorBinding flips that and says don't use setters, use the constructor
You can't use records with JPA because that requires a public no arg constructor... Records are immutable and contain an all args constructor. You can use Spring Data JDBC with records though.
@@SpringSourceDev i am using 2.6.4, i added the same dependency of webflux that Dan added but immidiatly intellj throws errors that it is an invalid dep and even if i try to run a test with WebTestClient it throws errors. Thank you for your help
I'd like to use Spring Boot but it's so inaccessible like everything in the Java/Kotlin world. Java is like a "special people only club". Go on the other hand is just straightforward and stuff is almost self-explanatory. For Java and Spring Boot there are only outdated examples and paid courses. You're good with explaining things, do you have your own youtube channel or something like that?
I'm curious to know why you feel like Java is a special people only club? I feel like the Java & Spring communities are both very welcoming. Let me know if there is anything I can do to help you out.
I have learned one thing in my professional life, stay away from spring framework as much as you can. You will regret in production if choose Spring framework.
Hello Spring Developer. I have updated my spring boot version to the 2.6.4 version, and I do receive this error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is java.lang.NoSuchMethodError: 'java.lang.reflect.Method org.springframework.util.ClassUtils.getInterfaceMethodIfPossible(java.lang.reflect.Method, java.lang.Class)' The particular matter is that I DO NOT receive until 2.6.3..... Anyone else delt with this problem? I tried several solutions to solve the problems, but without success.
IMHO "What's new in Spring Boot" with examples is very helpful! Good job!
Love the new test framework
Great to see some love for records.
The WebTestClient is my highlight here :D
Pretty cool stuff. Thanks for all your work
Glad you enjoyed it!
Good stuff! Thanks for the great examples.
Thank you for watching!
just awesome! waiting for 2.7 )
Thank you ! Very clear explanation of the new features.
Great video, looking forward to have more videos like this!
Awesome, thank you!
Thank you Great video !
What’s the IDE plugin that showing suggestions? . Looks like a very helpful plugin .
It is Github Copilot.
Great video can you please make some videos helping us in testing(Unit, Mock and Integration) and also some good practices on implementing Jwt with Spring security and a DB, and very happy having Dan vega, he is a great instructor, know him from his own youtube channel, by the way h also have gr8 content there
Thanks for the kind words and support Michel.
Great video with good explanations. I am curious about which plugin you are using for the Autocompletion/ suggestion of code.
I am asking myself the same question
Great video. Never knew we could use records for properties. Will use them from now on and remove Lombok config.
Glad I could help!
Great video as always. Would be interested to know the reason for the changes made. At a high level. May be
Thanks for Great Video that I can learn about new features!!! Easy to understand So Nice!!!!
Thanks for the nice examples... 👍
Glad you like them!
I liked this release features
Good examples.
Thank you. This is a great video.
One thing I really want from spring is to auto-update the way angular does. Should be able to run a command spring update --fromVersion=2.4.5 --toVersion=2.5.9. As a developer that has to manage 20+ microservices would save so much time since it's not always straightforward like this.
Very informative, thanks so much
Where can i find the video about constructor vs field injection?
Indeed where. No feedback from the creator. If they don't want comments they should just disable them.
I added the link to that video in the description.
I would never disable comment... feedback is the best part of UA-cam
@@SpringSourceDev Thank you very much :)
Good job as always
Appreciate that
Does someone knows what is responsible for grey code suggestions? Is it some intellij setting or plugin?
It's coming from Github copilot
In intellij ultimate, there are lot of features
Watched it at 1,5x speed. Thanks a lot!
That's it... I'm near 2.0 when I edit my own videos 🤣
@@SpringSourceDev nice reply 😂
Great video
Looking for something similar for 2.7 as well
What about reentrant calls that should follow AOP pointcuts, like @Transactional?
Self-injection is very handy to enable reentrant calls to honor @Transactional, @Cacheable, @Retryable..., and disabling circular dependencies also disable self-injection, which is too bad.
There are a several excuses for circular dependencies, it seems to me that none of those excuses are good😌🥄☮
@@ChrisB_Crisps @ruben nav OK, but how would you solve reentrant calls that need to go through AOP aspect (like @Transactional, @Cacheable, @Retryable...)? Would you use less readable aletrnative or artificially divide your service class into two classes using purely technical reasons (no business reason) just because reentrant calls in Spring do not take into account AOP aspects by default? This seems to me no good reason to do either just because of technical limitations...
For me, reeentrant calls are valid in service classes as a type of functional reuse, not all reuse should be object-oriented.
And if we have reentrant calls, then we sometimes need AOP aspects applied to them as well.
Do you maybe think this is better and/or more readable:
@Service @Cacheable
public class MyService() {
...
...
((MyService) AopContext.currentProxy()).myMethod1();
...
((MyService) AopContext.currentProxy()).myMethod2();
...
((MyService) AopContext.currentProxy()).myMethod3();
Than this:
@Service @Cacheable
public class MyService() {
...
@Autowired
private MyService self;
...
...
self.myMethod1();
...
self.myMethod2();
...
self.myMethod3();
I do not think so.
51:50 better take Instant and convert to the local date on the client or in the view.
Thanks for the suggestion.
Thanks for the video, would using @Lazy approach for the circular references be a recommended way to fix these issues? Although I am worried that it may lead to runtime error...
Thank you 😊
Very nice video
thanks for share it
video link to check your video on why constructor injection over other pls?
I added it, thank you for catching that.
@@SpringSourceDev Thank you so much
It it possible to have these videos as audio version in Spotify? I always look spring podcast on Spotify.
very informative
Good Job
Thank you!
26:31 What is the plugin that shows you an expected code snippet?
Github Copilot
Isn't it a time for Spring foundation to move from maven to gradle?
Oy, what about 2.5? There was a dedicated What's New vid for 2.3 and 2.4. 😁
I will go back and take a look at it and see what I can do.
Good video
I dont understand the Circular Issue . Why do we need to use @Lazy ? The are sometimes where this behavior is needed. Why you dont support Circular reference as always ?
it's really awesome video.
just asking do u have any pdf file for it ?so it should be great
No, sorry. What would you like to see in the form of a PDF?
@@SpringSourceDev just summary(example ,description, why, what), it will really helpful those who preparing for interview also for quick lookup
@@RN-jo8zt PDF? well there is a web version you could take the pdf from there, this is the video version, would be stange to make the PDF version from the video version from the web version? or you want to print it to learn the basics?
In Records and Configuration properties it seemed like it’s complaining about non existing bean of type String as it’s trying to do constructor injection not exactly that it doesn’t know about constructor
It was expecting the 1st argument to the constructor to be of type String but nothing was getting passed to the constructor when we are using setters to the set the values. The @ConstructorBinding flips that and says don't use setters, use the constructor
So.. how do you do a many-to-many relationship with record, not class?
You can't use records with JPA because that requires a public no arg constructor... Records are immutable and contain an all args constructor. You can use Spring Data JDBC with records though.
Great explanation, I confirm that google gives you a wrong translation 😅
haha oops. 🤦♂️
What is wrong with circular dependencies in a service?
when adding the webflux dependency in the pom.xml it always throws errors can someone help me?
What version of Spring Boot are you using? What dependency are you including?
@@SpringSourceDev i am using 2.6.4, i added the same dependency of webflux that Dan added but immidiatly intellj throws errors that it is an invalid dep and even if i try to run a test with WebTestClient it throws errors. Thank you for your help
Thanks a lot. Worthy watch.
I have a Q. What is the plug-in that keeps auto-completing your code?
It's Github's copilot, but its access is invite only atm, alternatively you can use Tabnine.
@@luismpcunha thanks... I'll check it out.
thnx..
Co-pilot is cool! Isn’t it?;)
why not make a full ecommerce site like multiple vendor
I'd like to use Spring Boot but it's so inaccessible like everything in the Java/Kotlin world.
Java is like a "special people only club".
Go on the other hand is just straightforward and stuff is almost self-explanatory.
For Java and Spring Boot there are only outdated examples and paid courses.
You're good with explaining things, do you have your own youtube channel or something like that?
I'm curious to know why you feel like Java is a special people only club? I feel like the Java & Spring communities are both very welcoming. Let me know if there is anything I can do to help you out.
Co-pilot is wasted on the presenter...
I have learned one thing in my professional life, stay away from spring framework as much as you can. You will regret in production if choose Spring framework.
If you are not interested in using Spring then stop trolling videos about Spring.
Hello Spring Developer.
I have updated my spring boot version to the 2.6.4 version, and I do receive this error:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is java.lang.NoSuchMethodError: 'java.lang.reflect.Method org.springframework.util.ClassUtils.getInterfaceMethodIfPossible(java.lang.reflect.Method, java.lang.Class)'
The particular matter is that I DO NOT receive until 2.6.3.....
Anyone else delt with this problem?
I tried several solutions to solve the problems, but without success.
Hello spring team.
I have an idea to contribute to the project. Can you contact me?