This is my first time watching your videos and you’re amazing very clear and informative I tried to implement scheduled method inside my project and after your vid I fully understand the concept🙏
@mr_freezer6671 Жыл бұрын
Can you make a video about spring exception handling
@devtiro Жыл бұрын
For sure! It will drop tomorrow :)
@devtiro Жыл бұрын
Here you go: kzbin.info/www/bejne/j4GbeIBqat9slbM 😁
@victorcoiman4984 Жыл бұрын
Very nice video👍👍👍
@akkl39477 ай бұрын
Thank You a lot my brother! Just exactly what I needed right now in my pet project! By the way, couldn't you review your subscribers projects sometime?
@drazcode43873 ай бұрын
@Autowired is not needed after constructor injection. Shouldn't it bee @Autowired BookRepository book repository; OR constructor injection only (under and without @Autowired annotation) ???
@federico42o Жыл бұрын
Sorry, I thought that Dependency injection by constructor keeps working without the autowired annotation or is it necessary
@devtiro Жыл бұрын
You're right! docs.spring.io/spring-framework/docs/4.3.x/spring-framework-reference/htmlsingle/#beans-autowired-annotation As of Spring Framework 4.3 if there is only one explicit constructor then you can omit the @Autowired annotation 💪
@ssabarish137 Жыл бұрын
Yes. Only for field and setter injection, @Autowired is required. Constructor autowiring is implicit
@nyizeya9911 ай бұрын
How do you handle schedule system on multiple nodes. The configuration that documentation suggests creates like 11 extra tables. Do you have any other way?
@smitamaity2830 Жыл бұрын
For me, in local the task schedular is running but when i am running on server it is not working. Any idea what could be the issue? Do i need to add any configuration for the schedular?
@devtiro Жыл бұрын
That does sound odd... I'd recommend checking the date/time on the server. If it's in a different timezone it may go off at the right time, but just a different time to your local timezone.
@sanchez-emir Жыл бұрын
podrías hacer sobre unit test para controller y service usando JUnit y Mockito?
@devtiro Жыл бұрын
You can indeed! It would run a lot faster than integration tests using MockMVC, but would not test framework-specific configuration, like the annotations used on the endpoints. This is because you would be calling the controller method directly. Both are good options. It just depends on what you need at the time 😁