- 109
- 347 067
SivaLabs
India
เข้าร่วมเมื่อ 14 ธ.ค. 2007
Video tutorials on Java, Spring, SpringBoot, Hibernate, JPA, MicroServices, Docker, Kubernetes, DevOps, and Testing
Spring Boot: From Zero to Hero - Aspect Oriented Programming (AOP)
Join this channel to get access to the perks:
th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin
#sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker
❤️ Thanks for watching
References
=============================================
⭐ Source Code: github.com/sivaprasadreddy/spring-boot-from-zero-to-hero
⭐ Spring Boot Tutorials: www.sivalabs.in/spring-boot-tutorials/
Connect with Me
=============================================
Blog: www.sivalabs.in
TH-cam: th-cam.com/users/sivalabs
Twitter: sivalabs
GitHub: github.com/sivaprasadreddy
LinkedIn: www.linkedin.com/in/ksivaprasadreddy/
Must Watch Videos
=============================================
🚀 🎬 Spring Boot REST API Anti-Patterns and Best Practices th-cam.com/video/koxu51eqDiQ/w-d-xo.html
🚀 🎬 Modern Spring Boot Application Development using Java 17/21 and Testcontainers th-cam.com/video/q2LSz7cnC1g/w-d-xo.html
🚀 🎬 How do I upskill myself, and what tools & techniques do I use? th-cam.com/video/oOAaGvpQTCo/w-d-xo.html
🚀 🎬 Top 5 Tips to Succeed in Technical Interviews th-cam.com/video/xNf512h5bnU/w-d-xo.html
Popular Series Playlists
=============================================
🚀 🎬 Spring Boot Tips Series Playlist th-cam.com/play/PLuNxlOYbv61jFFX2ARQKnBgkMF6DvEEic.html
🚀 🎬 Spring Boot + Kubernetes Tutorial Series Playlist th-cam.com/play/PLuNxlOYbv61h66_QlcjCEkVAj6RdeplJJ.html
🚀 🎬 Spring Boot - The Missing Guide Series Playlist th-cam.com/play/PLuNxlOYbv61jZL1IiciTgWezZoqEp4WXh.html
🚀 🎬 Integration Testing with Testcontainers th-cam.com/play/PLuNxlOYbv61iJTO_16Yyim5dAEj4GjsX5.html
🚀 🎬 Java Testing Made Easy Playlist th-cam.com/play/PLuNxlOYbv61jtHHFHBOc9N7Dg5jn013ix.html
⭐ Tags ⭐
best spring tutorials, best spring boot tutorials, how to learn spring boot, mastering spring boot, complete java testing course, java testing best practices, how to build spring boot rest API, spring cloud tutorials, spring boot docker tutorial, spring boot kubernetes tutorial, how to become proficient in java, how to learn spring boot quickly, how to learn spring boot in-depth
th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin
#sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker
❤️ Thanks for watching
References
=============================================
⭐ Source Code: github.com/sivaprasadreddy/spring-boot-from-zero-to-hero
⭐ Spring Boot Tutorials: www.sivalabs.in/spring-boot-tutorials/
Connect with Me
=============================================
Blog: www.sivalabs.in
TH-cam: th-cam.com/users/sivalabs
Twitter: sivalabs
GitHub: github.com/sivaprasadreddy
LinkedIn: www.linkedin.com/in/ksivaprasadreddy/
Must Watch Videos
=============================================
🚀 🎬 Spring Boot REST API Anti-Patterns and Best Practices th-cam.com/video/koxu51eqDiQ/w-d-xo.html
🚀 🎬 Modern Spring Boot Application Development using Java 17/21 and Testcontainers th-cam.com/video/q2LSz7cnC1g/w-d-xo.html
🚀 🎬 How do I upskill myself, and what tools & techniques do I use? th-cam.com/video/oOAaGvpQTCo/w-d-xo.html
🚀 🎬 Top 5 Tips to Succeed in Technical Interviews th-cam.com/video/xNf512h5bnU/w-d-xo.html
Popular Series Playlists
=============================================
🚀 🎬 Spring Boot Tips Series Playlist th-cam.com/play/PLuNxlOYbv61jFFX2ARQKnBgkMF6DvEEic.html
🚀 🎬 Spring Boot + Kubernetes Tutorial Series Playlist th-cam.com/play/PLuNxlOYbv61h66_QlcjCEkVAj6RdeplJJ.html
🚀 🎬 Spring Boot - The Missing Guide Series Playlist th-cam.com/play/PLuNxlOYbv61jZL1IiciTgWezZoqEp4WXh.html
🚀 🎬 Integration Testing with Testcontainers th-cam.com/play/PLuNxlOYbv61iJTO_16Yyim5dAEj4GjsX5.html
🚀 🎬 Java Testing Made Easy Playlist th-cam.com/play/PLuNxlOYbv61jtHHFHBOc9N7Dg5jn013ix.html
⭐ Tags ⭐
best spring tutorials, best spring boot tutorials, how to learn spring boot, mastering spring boot, complete java testing course, java testing best practices, how to build spring boot rest API, spring cloud tutorials, spring boot docker tutorial, spring boot kubernetes tutorial, how to become proficient in java, how to learn spring boot quickly, how to learn spring boot in-depth
มุมมอง: 811
วีดีโอ
IntelliJ IDEA Tips: Inject Spring Bean Dependencies like a BOSS
มุมมอง 573หลายเดือนก่อน
#sivalabs #java #spring #springboot #intellijidea #testing #junit #junit5 #intellijideatips ❤️ Thanks for watching Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin Connect with Me Blog: www.sivalabs.in TH-cam: th-cam.com/users/sivalabs Twitter: sivalabs GitHub: github.com/sivaprasadreddy LinkedIn: www.linkedin.com/in/ksivaprasadreddy/...
IntelliJ IDEA Tips: Create Logger Instance in a Snap
มุมมอง 534หลายเดือนก่อน
#sivalabs #java #intellijidea #intellijideatips ❤️ Thanks for watching Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin Connect with Me Blog: www.sivalabs.in TH-cam: th-cam.com/users/sivalabs Twitter: sivalabs GitHub: github.com/sivaprasadreddy LinkedIn: www.linkedin.com/in/ksivaprasadreddy/ Must Watch Videos 🚀 🎬 Spring Boot REST API ...
Spring Boot: From Zero to Hero - Database Design & Flyway Migrations
มุมมอง 967หลายเดือนก่อน
Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin #sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker In this video, you will learn: ► How to get started with Spring Data JPA ► How to use Flyway for database migrations ► How to create JPA entities and repositories easily ...
Spring Boot: From Zero to Hero - WebApp Layout using Thymeleaf and WebJars
มุมมอง 737หลายเดือนก่อน
Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin #sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker #thymeleaf #webjars In this video, you will learn: ► How to create layout pages using Thymeleaf ► How to use WebJars to include static resources like JavaScript and Css f...
Spring Boot: From Zero to Hero - Know Most Commonly Used Spring Boot Annotations
มุมมอง 1.1Kหลายเดือนก่อน
Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin #sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker ❤️ Thanks for watching References ⭐ Source Code: github.com/sivaprasadreddy/spring-boot-from-zero-to-hero ⭐ Spring Boot Tutorials: www.sivalabs.in/spring-boot-tutorials/ ...
Spring Boot: From Zero to Hero - Spring Dependency Injection
มุมมอง 640หลายเดือนก่อน
Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin #sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker In this video, you will learn: ► How to use Spring annotations and classpath scanning to register Spring beans. ► How to use JavaConfig for registering beans of 3rd party...
Spring Boot: From Zero to Hero - Explore Spring Boot Application Structure
มุมมอง 727หลายเดือนก่อน
#sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker In this video, you will learn: ► How Spring Boot simplifies Spring-powered application development using Opinionated and Convention-over-Configuration based approach. ► The importance of application main entry point class and root package. ❤️ Thanks for watching Refer...
Spring Boot: From Zero to Hero : Development Environment Setup
มุมมอง 1.2Kหลายเดือนก่อน
Join this channel to get access to the perks: th-cam.com/channels/7yMHBNLA1AnVfy_beGJGqg.htmljoin #sivalabs #java #spring #springboot #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker In this video, you will learn: ► How to install JDK using SDKMAN and IntelliJ IDEA ► How to install IntelliJ IDEA using JetBrains Toolbox ► Install Docker Desktop or OrbS...
Spring Boot From Zero To Hero - A Hands-On Complete Tutorial
มุมมอง 1.8Kหลายเดือนก่อน
#sivalabs #java #spring #springboot #springcloud #microservices #restapi #intellijidea #testing #junit #junit5 #maven #testcontainers #docker ❤️ Thanks for watching References ⭐ Source Code: github.com/sivaprasadreddy/spring-boot-from-zero-to-hero-series ⭐ Spring Boot Tutorials: www.sivalabs.in/spring-boot-tutorials/ Connect with Me Blog: www.sivalabs.in TH-cam: th-cam.com/users/sivalabs Twitte...
Spring Boot Scheduled Jobs
มุมมอง 6552 หลายเดือนก่อน
#sivalabs #java #spring #springboot #intellijidea #intellijtutorial ❤️ Thanks for watching Connect with Me Blog: www.sivalabs.in TH-cam: th-cam.com/users/sivalabs Twitter: sivalabs GitHub: github.com/sivaprasadreddy LinkedIn: www.linkedin.com/in/ksivaprasadreddy/ Must Watch Videos 🚀 🎬 Spring Boot REST API Anti-Patterns and Best Practices th-cam.com/video/koxu51eqDiQ/w-d-xo.html 🚀 🎬 ...
How to use Spring Data JPA Derived Query Methods?
มุมมอง 7942 หลายเดือนก่อน
#sivalabs #java #spring #springboot #jpa #springdatajpa #intellij #intellijidea #jpabuddy In this video, you will learn: ► How to use Spring Data JPA Derived Queries ► How to use JPA Buddy plugin to refactor long derived query method names to meaningful names. ❤️ Thanks for watching References ⭐ IntelliJ IDEA: www.jetbrains.com/idea/ ⭐ JPA Buddy: jpa-buddy.com/ ⭐ JPA Buddy IntelliJ Plugin: plug...
Generate JPA Entities and Repositories using IntelliJ IDEA JPA Buddy Plugin
มุมมอง 1.1K2 หลายเดือนก่อน
#sivalabs #java #spring #springboot #jpa #springdatajpa #intellijidea #intellij #jpabuddy In this video, you will learn: ► How to generate JPA entities using IntelliJ IDEA JPA Buddy Plugin ► How to generate Spring Data JPA Repositories ❤️ Thanks for watching References ⭐ IntelliJ IDEA: www.jetbrains.com/idea/ ⭐ JPA Buddy: jpa-buddy.com/ ⭐ JPA Buddy IntelliJ Plugin: plugins.jetbrains.com/plugin/...
My IntelliJ IDEA SetUp for Java Development
มุมมอง 5K6 หลายเดือนก่อน
#sivalabs #java #spring #springboot #maven #docker In this video, I show what are the plugins I use for my Java development. Connect with Me Blog: www.sivalabs.in TH-cam: th-cam.com/users/sivalabs Twitter: sivalabs GitHub: github.com/sivaprasadreddy LinkedIn: www.linkedin.com/in/ksivaprasadreddy/ Must Watch Videos 🚀 🎬 Spring Boot REST API Anti-Patterns and Best Practices th-cam.com/...
Spring Modulith Crash Course : Building Modular Monoliths using Spring Boot
มุมมอง 9K7 หลายเดือนก่อน
#sivalabs #java #spring #springboot #springmodulith #microservices #testing #junit #junit5 #maven ⭐ Table Of Contents ⭐ 00:00 Introduction to Modular Monoliths 01:25 Walkthrough of a monolithic application code 09:33 Introducing Spring Modulith 10:50 Verifying Module Structure using Spring Modulith 12:04 Understanding Spring Modulith Concepts 14:22 Fixing Module Structure Violations 30:14 Sprin...
Spring Boot Docker Compose Support : Local Development Made Simple
มุมมอง 1.8K8 หลายเดือนก่อน
Spring Boot Docker Compose Support : Local Development Made Simple
Spring Boot MicroServices Course: Conclusion
มุมมอง 1.4K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Conclusion
Spring Boot MicroServices Course: Observability using Prometheus, Loki, Tempo and Grafana
มุมมอง 2.8K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Observability using Prometheus, Loki, Tempo and Grafana
Spring Boot MicroServices Course : Securing MicroServices using Spring Security OAuth2
มุมมอง 3.6K8 หลายเดือนก่อน
Spring Boot MicroServices Course : Securing MicroServices using Spring Security OAuth2
Spring Boot MicroServices Course: Building BookStore WebApp using Thymeleaf and Alpine.js
มุมมอง 1.3K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Building BookStore WebApp using Thymeleaf and Alpine.js
Spring Boot MicroServices Course : API Gateway using Spring Cloud Gateway
มุมมอง 4.7K8 หลายเดือนก่อน
Spring Boot MicroServices Course : API Gateway using Spring Cloud Gateway
Spring Boot MicroServices Course : Implementing Notification Service
มุมมอง 2.6K8 หลายเดือนก่อน
Spring Boot MicroServices Course : Implementing Notification Service
Spring Boot MicroServices Course : Implement Get Orders APIs
มุมมอง 8638 หลายเดือนก่อน
Spring Boot MicroServices Course : Implement Get Orders APIs
Spring Boot MicroServices Course : Publish Order Events to RabbitMQ using Outbox Pattern
มุมมอง 1.6K8 หลายเดือนก่อน
Spring Boot MicroServices Course : Publish Order Events to RabbitMQ using Outbox Pattern
Spring Boot MicroServices Course : RestClient with Resilience4j Patterns Applied
มุมมอง 2K8 หลายเดือนก่อน
Spring Boot MicroServices Course : RestClient with Resilience4j Patterns Applied
Spring Boot MicroServices Course: Implementing Create Order API
มุมมอง 1.5K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Implementing Create Order API
Spring Boot MicroServices Course: Order Service Walking Skeleton Setup
มุมมอง 1.7K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Order Service Walking Skeleton Setup
Spring Boot MicroServices Course : Dockerizing Catalog Service
มุมมอง 1.8K8 หลายเดือนก่อน
Spring Boot MicroServices Course : Dockerizing Catalog Service
Spring Boot MicroServices Course: Implementing Catalog Service APIs
มุมมอง 3.8K8 หลายเดือนก่อน
Spring Boot MicroServices Course: Implementing Catalog Service APIs
Hi anna, instead of creating a Dymmy file, We can set dynamic names also ( using Apache Velocity programming ). We can set file name like this '$NAME.substring(0,1).toLowerCase()$NAME.substring(1)/$NAME.java' instead of leaving blank Thank You
@sivalabs i'm Getting nullpointerexception in repositorytest as below java.lang.NullPointerException: Cannot invoke "com.gagan.bookstore.catalog.domain.ProductRepository.findByCode(String)" because "this.productRepository" is null I debug it but not able to resolve it. Please help me out.
Awesome. Super useful🔥🔥🔥🔥
I’ve learned so much from your videos-thank you for sharing such valuable content! I have a suggestion/request: If possible, could you consider adding a video on *How to use gRPC in microservice communication?* It could either be part of this series or in a separate one. I’d really appreciate it! Thank you again!
Awesome series. Watched all the videos. Thank you. If it's not too much trouble, could you please share the DevZone repository link? It would be immensely helpful as a reference for E2E and performance testing. Thank you so much in advance!
Learned a lot from this series. Now I gained some confidence that I can write some testing on my own. Thank you for helping me.
Well siva i am using java 17, do i need also sdkmnrc file? Please provide guidance to me on this?
Thanks for the wonderful video. Subscribed.
how did you create the root project in this video
Sir i switched to IntelliJ IDEA ultimate i got ultimate because i am a student is there any resources explaining how to use it efficiently? From basic setup to advance?
How I missed your content in the beginning of my career. Really very useful content
Thank you🙏, just thank you may not be enough for giving us such a great valuable content. I already referred this to two of my friends in one day...definitely...I'll refer to more. Thank you once again🙏
Thank you🙏, just thank you may not be enough for giving us such a great valuable content. I already referred this to two of my friends in one day...definitely...I'll refer to more. Thank you once again🙏
This video deserves more views. Very useful for beginners & experienced developers
Hi, Mr. Siva. I have just watched your IntelliJ session about the redesigned structure tool window. I was awesome btw. And while I was watching, I noticed that you used some very interesting annotations (like @Tag, @Operation, @ApiResponses just to name a few). So, I would like to gently ask you to when it's time to explain about REST endpoints in this video serie, could you please tell us why you use these annotations? I have just read the Spring Start Here book and also flipped through the Pro Spring book, but none of these annotations are presented on these two books. It seems that you are always one step ahead of some books Mr. Siva :) Again, thanks for the video.
Hi, I am glad that you liked the Livestream on Structure tool window. Those annotations are from "springdoc-openapi" library to create Swagger OpenAPI documentation with more descriptive details rather than default information derived from method names, return type, etc.
外部APIとの連携をテストする際に、モックサーバーを利用することで、実際のAPIを呼び出さずにテストできる点がとても便利ですね。特に、エラーシナリオや異常系のテストをシンプルに行える点が印象的でした。この方法を自分のプロジェクトにも取り入れ、テストの効率化を図りたいと思います。ありがとうございます!
Good One! Please do more vidoes
has to say ..quality content💯
Good job buddy! Thank you so much!
can you please make full docker course
Yes please
Thank you sir for the amazing explanation 😌
why am i getting following error org.springframework.dao.InvalidDataAccessResourceUsageException: JDBC exception executing SQL [select a1_0.address_id,a1_0.address1,a1_0.address2,a1_0.city,a1_0.created_by,a1_0.created_date,a1_0.cust_id,a1_0.landmark,a1_0.last_update,a1_0.modified_by,a1_0.modified_date,a1_0.postal_code,a1_0.state from gen.address a1_0] [ERROR: relation "mgn.address" does not exist Position: 209] [n/a]; SQL [n/a]
eagerly waiting for this series.
Hi Here you have used only one test class and used the postgres image. in real time we going to have many test classes. Should we run postgres container for each test class ? let me know mate
Hi I think, the container can be made static(as it is done in this video) , you can use it in all test classes. So, only one container is enough irrespective of number of tests
But man, these GPTs suggesting to create test containers for each test as a best practice
in local we have docker desktop to run container,how they runs in pipeline?
Testcontainers needs a container runtime to work. You also need to have Docker or any of its alternatives(Podman, Colima, etc) to be installed in CI environments. GitHub Actions comes with Docker installed, so Testcontainers tests works out of the box. You can checkout Testcontainers blog posts(www.docker.com/blog/tag/testcontainers/) if you are using other CI systems like CircleCI, Jenkins, etc.
Hi Should i create spring boot test for each test classes ? here for one controller you have pulled and run the postgres container, should we do that for each test class ? or any global way to get container up and running
If you want to use the same containers for all the test classes, you can use singleton containers approach described here testcontainers.com/guides/testcontainers-container-lifecycle/#_using_singleton_containers
@sivalabs hey thanks , Thank you for making such great content. Heartful wishes 🙂
Sir can we keep the publishing logic at the end then problem sloved right save the data in database and publish and return correct me if i am wrong? Problem will be happen if we have publishing logic first after publishing if we are doing save at the end then we will have problem right but in the above we are writing after the save operation right if any exception occurs during save then directly control goes to exception handler right
how problem will happen if we are publishing after save method pl explain sir ?
Once the record is saved successfully in DB, and then the sending message is failed, then how to handle this scenario?
@@sivalabsin that case we need to use outbox pattern which u have suggested above we need to save the event which need to published in the database so that if broker is down (sending message is failed) we can do retry later understood the problem sir
Can we use mysql instead of postgres
Yes
Thanks to this video I have gained more knowledge.
This is for the people who are using lombok in this order service for the entity class don't use @data use @getter and @setter if u use u will face circular dependency issue which will lead to stack overflow error
use swagger and u will get the sample payload format and test it from the swagger or copy the payload and try testing from the postman
sir i wrote the AppProperties class on the top of the class i used this annotation for @ConfigurationProperties(prefix = "orders")(for bulk injection) in order to tell to container to active the bulk injection i used @ConfigurationPropertiesScan on the main class (configuration class @SpringBootApplication class ) and i also have the spring-boot-configuration-processor dependency still in application.yml file i am not getting suggestions anything i missed ?
Are you using Intellij IDEA Ultimate? The Spring Boot properties suggestions support is available in Ultimate. If you are using Ultimate and still not showing the suggestions, please try clean build once.
@sivalabs I am using sts sir For the previous project I got suggestions for the new project I am not getting i thought i missed some configuration
hay lam dmm
Really cool Siva Thank you for sharing
Nice Feature
Sounds good.
Thank you so much.
sir while interacting with database it need to create datasource object it reads the necessary properties from application.propreties (autoconfiguration and bulk injection) right in the first demo the properties are there in compose.yaml file so from compose.yaml how it will read ?
While using Spring Boot docker compose support for database, Spring Boot will ignore the properties configured in application.properties file and use POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB env variable values configured in compose.yaml file. I have demonstrated this here th-cam.com/video/fTcyyxs3ZXI/w-d-xo.htmlsi=cEXXle4ibeuQn1Yg&t=588
Good video we need some tricks of intellij to upgrade own productivity. Do You have a tutorial to central loging wirh AOP
Hi, How to get that theme and icons in IDE
@@manojreddyevuri My IDE setup is explained in this video th-cam.com/video/HJYybOuPym4/w-d-xo.htmlsi=V73azp9fxFvmmnou
Very, very nice video, Mr. Siva. You are the best. 👏
Is this new feature of Intellij? I only recently found out about this and it has saved me a lot of hassle already.
Conitnue your tutorial series,You are great.
Intellij IDEA LiveTemplates: github.com/sivaprasadreddy/intellij-live-templates How to Build a CRUD REST API Using Spring Boot: blog.jetbrains.com/idea/2024/10/how-to-build-a-crud-rest-api-using-spring-boot/ How to Use Flyway for Database Migrations in Spring Boot Applications: blog.jetbrains.com/idea/2024/11/how-to-use-flyway-for-database-migrations-in-spring-boot-applications/
Great . I need to work on some basics (Flyway, docker ) . Really helpful to know how things are done in production .
Great explanation...very useful
@Transactional public void updatePost(UpdatePostCmd cmd) { var entity = postRepository .findById(cmd.id()) .orElseThrow(() -> new ResourceNotFoundException("Post with id " + cmd.id() + " not found")); entity.setTitle(cmd.title()); entity.setSlug(cmd.slug()); entity.setContent(cmd.content()); postRepository.save(entity); } sir can u please tell me why u are using @transactional here i got to know that by default spring boot does the rollback whenever the runtime exceptions occurs if anything is wrong pl correct it
When you have @Transactional then Spring will rollback if any RuntimeException occurs. Otherwise it won't. You can verify that by having a method without @Transactional annotation and have 2 insert operations in such a way that first insert succeeds and second insert fail. Then you can notice first insert actually committed the changes into database. Then add @Transactional annotation and try the same. This time no record should be inserted when a RuntimeException is thrown.
to make a user defined classes as spring bean we can use @component to make a predefined classes as a spring bean we can use @bean
sir can u show in windows?
In Windows, you will need to use Windows Subsystem for Linux (WSL) to use SDKMAN. However, there is an initiative to create a native CLI for all major operating systems github.com/sdkman/sdkman-cli-native.
i got to know so many things sir Just like how there are different database vendors that provide their own JDBC (Java Database Connectivity) drivers to enable Java applications to communicate with databases (e.g., Oracle providing an Oracle JDBC driver, MySQL providing its own MySQL driver, etc.), there are different vendors who provide their own implementations of the JDK (Java Development Kit). These JDKs are built following the Java SE (Standard Edition) specifications defined by the Java Community Process (JCP), which outlines the rules, APIs, and guidelines that need to be followed for any Java implementation. creating a GitHub repository directly from the sts ide is it possible i explored i found this egit plugin but we can do only basic things ..can't create repo from ide using this egit plugin