Tamil Skillhub
Tamil Skillhub
  • 94
  • 259 089
JUnit Testing with Mockito in Spring Boot - Complete Guide
In this video, we will explore how to write efficient unit tests in Spring Boot using JUnit and Mockito. We will walk through testing a real-world Spring Boot application, covering the service layer, controller layer, and how to mock dependencies to isolate components. If you're looking to improve your testing skills and make your Spring Boot applications more robust, this tutorial is for you!
We’ll cover:
Introduction to JUnit and Mockito
Spring Boot Application Setup for Testing
Writing Unit Tests for Service Layer
Writing Unit Tests for Controller Layer
Mocking Dependencies using Mockito
Generate coverage report
By the end of this video, you will have a clear understanding of how to write comprehensive unit tests for your Spring Boot application using JUnit and Mockito.
Chapters:
00:00 - Introduction
00:38 - Application Explanation
01:58 - Setting Up JUnit & Mockito
03:12 - Writing Application Tests
05:15 - Service Layer Test
15:38 - Controller Layer Test
22:25 - Running and Verifying Tests
23:06 - Generate Coverage Report
Don't forget to like, share, and subscribe for more Spring Boot tutorials!
Join this channel to get access to perks:
th-cam.com/channels/xBBknemkiUpO6aCmdKK2ww.htmljoin
มุมมอง: 59

วีดีโอ

Spring Boot Step-by-Step CRUD Tutorial with MongoDB: Mastering Collections and Documents
มุมมอง 98วันที่ผ่านมา
This comprehensive step-by-step tutorial walks you through building a complete CRUD (Create, Read, Update, Delete) application using Spring Boot and MongoDB. Learn how to set up MongoDB from scratch, integrate it with a Spring Boot project, and leverage Spring Data MongoDB to interact with the database seamlessly. The tutorial covers everything from basic CRUD operations to advanced topics such...
Spring Boot Microservices Tutorial in Tamil | Monolithic vs Microservices Architecture with Example
มุมมอง 51914 วันที่ผ่านมา
In this Tamil tutorial on Spring Boot microservices, we cover everything you need to know about building and understanding microservices architecture! We start by comparing monolithic and microservices architectures, explaining the drawbacks of monolithic systems and why microservices are preferred for modern applications. Using detailed explanations, PPT slides, and live coding, we’ll guide yo...
Spring Boot REST API Validation | User Input with @RequestBody Annotations
มุมมอง 16328 วันที่ผ่านมา
🔧 Spring Boot Validation Tutorial 🔧 In this video, we dive deep into Spring Boot and demonstrate how to use the validation package with annotations like @NotBlank, @Size, @NotEmpty, @Email, @NotNull, @Min, @Past, @DateTimeFormat, @Pattern, and @Valid. Whether you're building robust APIs or developing web apps, input validation is crucial for ensuring data integrity. 🚀 What You'll Learn: Using @...
Spring Boot 3 Swagger UI & OpenAPI Customization | Multiple Servers, Contact, License,Response Types
มุมมอง 146หลายเดือนก่อน
In this video, we’ll explore how to implement Swagger UI (OpenAPI 3 specification) in a Spring Boot 3 application. We cover: 🔧 Customizing OpenAPI configuration 🌐 Adding multiple server details 📞 Configuring contact information, service info, and license details 📋 Adding descriptions and titles for each API request ✅ Specifying response types with status codes: 🔹 200 (Success) 🔹 404 (Not Found)...
React Hook Form: Seamless Integration with Native Elements & Existing Forms with Validations
มุมมอง 114หลายเดือนก่อน
Discover how to supercharge your React projects with React Hook Form! This comprehensive tutorial walks you through everything you need to know: What is React Hook Form? - Understand the core concept and how it simplifies form management in React applications. Advantages of React Hook Form - Learn why React Hook Form is the go-to solution for handling forms efficiently in React. Environment Set...
Spring Boot Student App with MySQL & JDBC: JSON Handling, Custom Queries & Exception Handling
มุมมอง 3743 หลายเดือนก่อน
📌 Spring Boot Student Application with MySQL & JDBC: JSON Handling Welcome to our comprehensive tutorial on building a Spring Boot Student Application with MySQL and JDBC! In this video, we will guide you through the entire process of creating a robust backend application using the Spring Boot framework. 🔧 What You'll Learn: Spring Boot Setup: How to initialize a Spring Boot project and set up ...
Optimizing React Components: Avoiding useEffect Misuse | React | Tamil Skillhub
มุมมอง 1473 หลายเดือนก่อน
In this comprehensive guide, we delve into the common pitfalls of using the useEffect hook in React and explore alternative strategies to manage state and side effects more effectively. We'll cover various scenarios where useEffect might not be necessary and provide practical solutions to enhance your React application's performance and maintainability. Topics covered include: 1. Updating State...
Spring Boot with MySQL Integration Tutorial | Student Service CRUD Operations with JPA
มุมมอง 4044 หลายเดือนก่อน
Welcome to this comprehensive tutorial on integrating Spring Boot with MySQL! In this video, we'll walk you through a step-by-step guide to creating a Student Service application. We will cover the following: 🔸 Setting up Spring Boot project 🔸 Configuring MySQL database 🔸 Creating JPA entities for Student (id, name, department) 🔸 Performing CRUD operations (Create, Read, Update, Delete) 🔸 Best ...
Complete Spring Security Authentication and Authorization with JWT | Spring Boot 3 Tutorial
มุมมอง 7K4 หลายเดือนก่อน
Welcome to our comprehensive tutorial on Spring Security with JWT in Spring Boot 3! 🎉 In this video, we'll walk you through the entire process of implementing authentication and authorization using JSON Web Tokens (JWT) in a Spring Boot 3 application. We'll cover everything from user signup and login to role-based access control for users, admins, and moderators. Key Implemented Functionalities...
React Query & Axios: Simplifying API Calls in React Apps - Code Tutorial
มุมมอง 4004 หลายเดือนก่อน
Learn how to simplify API calls in your React applications using Axios and React Query. In this tutorial, we'll walk you through setting up Axios with a custom client and making asynchronous requests using React Query hooks. 📌 Key Topics Covered : - Setting up Axios with a custom client - Managing authorization headers with Axios - Using React Query's `useQuery` and `useMutation` hooks - Implem...
Spring Data JPA and MySQL in Tamil | Spring Boot | Complete Tutorial with Annotations
มุมมอง 7K5 หลายเดือนก่อน
Welcome to our comprehensive tutorial on Spring Data JPA with Spring Boot and MySQL! In this video, we cover everything you need to know to get started and master the integration of Spring Data JPA in your Spring Boot applications using MySQL. 🔹 Topics Covered: - What is Spring Data JPA? Understand the core concepts and benefits of using Spring Data JPA in your projects. - Setting Up the Enviro...
Building a Smart E-commerce Chatbot with React: Master Find Intent Logic
มุมมอง 5645 หลายเดือนก่อน
Find the assets link which have been used in this project: github.com/tamilskill/react-assets/tree/main/react-ecommerce-chatbot Description: Enhance your e-commerce platform's customer support with a smart, responsive chatbot built using React. In this tutorial, we walk you through the process of creating a sophisticated chatbot tailored for e-commerce applications. By leveraging Find Intent Lo...
Global State Management: React Zustand with Todo List Example & Redux Comparison
มุมมอง 7225 หลายเดือนก่อน
Dive deep into React state management with this comprehensive 35-minute tutoria, we unravel the complexities of state management in React. Discover how Zustand, a lightweight yet powerful alternative to Redux, simplifies your workflow. Follow along as we construct a dynamic todo list application, showcasing Zustand's efficiency. Learn the nuances of Zustand compared to Redux, understanding when...
Master Redux | Redux Toolkit : Complete Tutorial with Thunk and Saga | Live Demo Included! 🚀
มุมมอง 2K8 หลายเดือนก่อน
Dive into Redux mastery with our comprehensive tutorial! Learn the fundamentals, advanced concepts, and practical implementation using Redux Thunk. In this tutorial, we'll cover: Redux basics and principles Hands-on examples with Thunk and Saga Real-world scenarios and live demo Best practices for efficient Redux usage Whether you're a beginner or experienced developer, this tutorial has someth...
Spring Boot 3 Crash Course: Mastering RESTful API with CRUD Operations using H2 Database | Tamil
มุมมอง 13K9 หลายเดือนก่อน
Spring Boot 3 Crash Course: Mastering RESTful API with CRUD Operations using H2 Database | Tamil
Mastering Axios in React: API Requests, Authentication, and Advanced Techniques | React Tutorial
มุมมอง 7K10 หลายเดือนก่อน
Mastering Axios in React: API Requests, Authentication, and Advanced Techniques | React Tutorial
Boost React.js Performance: Tips for Efficient Development
มุมมอง 27410 หลายเดือนก่อน
Boost React.js Performance: Tips for Efficient Development
React Form Validation with Formik: A Comprehensive Guide
มุมมอง 1.3K10 หลายเดือนก่อน
React Form Validation with Formik: A Comprehensive Guide
Build a Hotstar Clone with React.js & Tailwind CSS | Full Stack Web Development Tutorial | TS
มุมมอง 1.8K11 หลายเดือนก่อน
Build a Hotstar Clone with React.js & Tailwind CSS | Full Stack Web Development Tutorial | TS
GraphQL Integration in React with Apollo Client | Dynamic Variable Usage | Tamil Skillhub
มุมมอง 2.5Kปีที่แล้ว
GraphQL Integration in React with Apollo Client | Dynamic Variable Usage | Tamil Skillhub
JavaScript Looping Masterclass: Harness the Power of for, map, reduce, filter, every, and some | JS
มุมมอง 329ปีที่แล้ว
JavaScript Looping Masterclass: Harness the Power of for, map, reduce, filter, every, and some | JS
Revolutionize Travel with React: Building a Bus Booking App
มุมมอง 8Kปีที่แล้ว
Revolutionize Travel with React: Building a Bus Booking App
Mastering React JS: Part 2 - Pro Tips and Tricks | Tamil Skillhub
มุมมอง 188ปีที่แล้ว
Mastering React JS: Part 2 - Pro Tips and Tricks | Tamil Skillhub
Mastering React JS: Part 1 - Pro Tips and Tricks | Tamil Skillhub
มุมมอง 826ปีที่แล้ว
Mastering React JS: Part 1 - Pro Tips and Tricks | Tamil Skillhub
Mastering Grocery Shopping: Unleashing the Power of React.js App Delivery | Tamil Skillhub
มุมมอง 899ปีที่แล้ว
Mastering Grocery Shopping: Unleashing the Power of React.js App Delivery | Tamil Skillhub
DOM Manipulation in React: A Ref Comparison | Class vs. Function Components | Tamil Skillhub
มุมมอง 307ปีที่แล้ว
DOM Manipulation in React: A Ref Comparison | Class vs. Function Components | Tamil Skillhub
Complete React Native Environment Setup & Android App Development Tutorial | React Native CLI |Tamil
มุมมอง 11Kปีที่แล้ว
Complete React Native Environment Setup & Android App Development Tutorial | React Native CLI |Tamil
Maximizing React Performance: Mastering PureComponent | Memoization Advanced Optimization | Tamil
มุมมอง 653ปีที่แล้ว
Maximizing React Performance: Mastering PureComponent | Memoization Advanced Optimization | Tamil
Automated Web Testing with Selenium and Java: Ultimate Guide | Selenium | Java | Tami Skillhub
มุมมอง 162ปีที่แล้ว
Automated Web Testing with Selenium and Java: Ultimate Guide | Selenium | Java | Tami Skillhub

ความคิดเห็น

  • @rumeshbharath2516
    @rumeshbharath2516 วันที่ผ่านมา

    மிக்க நன்றி நண்பரே ❤❤

  • @MCOTHAMILARASANK
    @MCOTHAMILARASANK 3 วันที่ผ่านมา

    👍

  • @kingprashant5052
    @kingprashant5052 6 วันที่ผ่านมา

    Class la semmaya irruku bro nenga full website develop pandrathu solli thanga bro ungala eppadi contact pandrathu bro

    • @tamilskillhub
      @tamilskillhub วันที่ผ่านมา

      You can mail me at tamilskillhub@gmail.com

  • @rumeshbharath2516
    @rumeshbharath2516 7 วันที่ผ่านมา

    ❤👍

  • @ambarishshiva7167
    @ambarishshiva7167 8 วันที่ผ่านมา

    Bro oneToOne mapping pannum pothu address table la data add agamatinkirathu so postman la id and name mattum than show aguthu

    • @tamilskillhub
      @tamilskillhub 8 วันที่ผ่านมา

      Just check you have added all required annotations. Revisit the video once

  • @rumeshbharath2516
    @rumeshbharath2516 11 วันที่ผ่านมา

    Bro spring boot la Junit and junit mockito use panni oru video podunga bro please

  • @solomonv938
    @solomonv938 16 วันที่ผ่านมา

    nice one ❤

  • @rumeshbharath2516
    @rumeshbharath2516 16 วันที่ผ่านมา

    மிக்க நன்றி நண்பரே

  • @bahir_hussain
    @bahir_hussain 17 วันที่ผ่านมา

    most waited video released, really thanks bro , do more and more

  • @MuthuDev3
    @MuthuDev3 22 วันที่ผ่านมา

    Very good video🎉🎉🎉🎉🎉❤❤❤❤❤

    • @tamilskillhub
      @tamilskillhub 22 วันที่ผ่านมา

      Thank you 🤗

  • @bahir_hussain
    @bahir_hussain 25 วันที่ผ่านมา

    Bro Microservices use panni oru CURD opretion panunga illana Microservices epadi spring boot la use panrom oru video podunga bro please same please do bro waiting really appreciate your helping bro i'm learning more about springboot from ur video

    • @tamilskillhub
      @tamilskillhub 25 วันที่ผ่านมา

      Will upload soon

  • @rumeshbharath2516
    @rumeshbharath2516 27 วันที่ผ่านมา

    Bro Microservices use panni oru CURD opretion panunga illana Microservices epadi spring boot la use panrom oru video podunga bro please

  • @srk07
    @srk07 29 วันที่ผ่านมา

    romba usefull aa irruthathu bro.thanks👍

  • @sabarinathan4275
    @sabarinathan4275 หลายเดือนก่อน

    Bro enaku Lombok and getter setter annotations work aagala

    • @tamilskillhub
      @tamilskillhub 29 วันที่ผ่านมา

      Lombok annotations can sometimes have issues, especially if your IDE or build tool is not properly set up to handle them. Here are some common troubleshooting steps to ensure Lombok annotations like @Getter and @Setter work properly: 1. Check Lombok Dependency Ensure that Lombok is correctly added as a dependency in your pom.xml (if using Maven) For Maven, the dependency should look like this: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.24</version> <scope>provided</scope> </dependency> 2. IDE Plugin Installation If you're using IntelliJ IDEA: Go to File > Settings > Plugins and search for "Lombok". Install the plugin and restart the IDE. After restarting, go to File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors. Ensure that Enable annotation processing is checked. If you're using Eclipse: Install the Lombok plugin via the Lombok JAR. You can download it from Lombok's official website. Once downloaded, run the JAR (java -jar lombok.jar) and point it to your Eclipse installation. Restart Eclipse.

  • @deekshithm.r117
    @deekshithm.r117 หลายเดือนก่อน

    Please upload Microsevies video

  • @vysaivicky4724
    @vysaivicky4724 หลายเดือนก่อน

    Entity la podra elam annotation vachi video podunga like one to one , one to many many to one la epadi work aagudhu epadi namba code la pdd pananum video podunga bro

    • @tamilskillhub
      @tamilskillhub 29 วันที่ผ่านมา

      Please watch this video - th-cam.com/video/2Z_xrfQUI4A/w-d-xo.html

  • @newbeginningfashion
    @newbeginningfashion หลายเดือนก่อน

    Junit spring boot test case video podunga bro

  • @yskgaming6956
    @yskgaming6956 หลายเดือนก่อน

    Yenththana like kku

  • @bram9007
    @bram9007 หลายเดือนก่อน

    please post micro services video

  • @subashravi3031
    @subashravi3031 หลายเดือนก่อน

    id auto generation appo yen bro id 52 varudhu first two crt then next ku 52.why

    • @tamilskillhub
      @tamilskillhub หลายเดือนก่อน

      i have manually inserted records and specified IDs for them, because of that the auto-increment value might skip to a higher number to avoid conflicts. (Sometimes, if you’ve inserted data manually or via another tool (not through your Spring Boot application), the sequence might have been altered. Make sure to clear any cache if applicable.)

    • @tamilskillhub
      @tamilskillhub หลายเดือนก่อน

      GenerationType.IDENTITY: Always uses the database’s native auto-increment mechanism. The database is responsible for generating the primary key. GenerationType.AUTO: Hibernate decides the best strategy based on the database you are using. This could be IDENTITY, SEQUENCE, or TABLE, depending on the database. In this project i have used AUTO so hibernate will manage the generation of key

  • @pesadhi1900
    @pesadhi1900 หลายเดือนก่อน

    Bro i am from kerala gud explanation thx

  • @genshingamer8361
    @genshingamer8361 หลายเดือนก่อน

    Hello sir i , neega oru node js backend and frontend react aa cpanel la deploy panni katamudiyumaaa

    • @tamilskillhub
      @tamilskillhub หลายเดือนก่อน

      No because it's a paid version. if need I can provide you some of alternatives for React use netlify and For Node use render.com.

    • @genshingamer8361
      @genshingamer8361 หลายเดือนก่อน

      @@tamilskillhub there is freecpanel providers ??

    • @tamilskillhub
      @tamilskillhub หลายเดือนก่อน

      I think no

  • @jagadeeps3095
    @jagadeeps3095 2 หลายเดือนก่อน

    super bro innum neraya video podunga indha madiri and for spring boot as well

  • @sarans2162
    @sarans2162 2 หลายเดือนก่อน

    Bro make a video on simple crud app using springboot + html, css, js

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Ok I will try

  • @Karvind-r5g
    @Karvind-r5g 2 หลายเดือนก่อน

    Good, thanks. But code font size can be increased in Eclipse editor.

  • @sathishkumar.b2771
    @sathishkumar.b2771 2 หลายเดือนก่อน

    Bro I have doubts in this project how can I reach you Neenga neraiya components create panrathunale confuse aaguthu bro

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      you can reach me at tamilskillhub@gmail.com

  • @mdfaizulmohammed1845
    @mdfaizulmohammed1845 2 หลายเดือนก่อน

    28:08 Pattern syntax send pannu ga bro or source sollu ga bro

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Pattern you requested for Email const pattern = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

  • @SivaSiva-4433
    @SivaSiva-4433 2 หลายเดือนก่อน

    Bro netlify some mistake aiduchi return account open panna mudiyala authentication error. Nu varuthu

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Try to use Google login or any other login provider

  • @JAISURYAG-l8i
    @JAISURYAG-l8i 2 หลายเดือนก่อน

    index.js matum rmba complicated ah irundhuchu bro may be next shorts la explain panna nallarkum ❤

  • @mohammedmohsin7851
    @mohammedmohsin7851 2 หลายเดือนก่อน

    409 error oda response eppadi access panrathu bro

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      You have to use the catch block and get the error

  • @URamSangar
    @URamSangar 2 หลายเดือนก่อน

    Nice we need more videos on spring boot mvc, spring boot Rest api project anna your the first spring boot rest api video in tamil anna and its really appreciate keep doing well i am waiting for more videos in spring boot complete course or series

  • @AvikNayak_
    @AvikNayak_ 2 หลายเดือนก่อน

    Suggestions: Make videos in english so that it reaches more audience.

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Sure

    • @AvikNayak_
      @AvikNayak_ 2 หลายเดือนก่อน

      ​@@tamilskillhubalso if possible make a backend for this project in express

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Sure

  • @rajam9935
    @rajam9935 2 หลายเดือนก่อน

    Manually is authenticated = true Add panna dasboard page. Ku pogumaa?? Will it be possible?

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Yeah it's possible. But if you have validated the token then it's not possible. And from the backend you need to perform any operation you have to send the token. If the user set authenticated true then toke will send as undefined and api doesn't send response

  • @m.mugammadhusatem.mugammad561
    @m.mugammadhusatem.mugammad561 2 หลายเดือนก่อน

    Bro i have doubt each api stores data in different key name then how can i know by only sending url to the hook. It was created for that api only

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Yeah it will create a reference and then it will do the operation. Because of instance each call will be considered as different function.

  • @Jai23_official
    @Jai23_official 2 หลายเดือนก่อน

    How to get tamil movie list bro

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Try chatgpt or IMDb paid version

  • @akhicj9071
    @akhicj9071 2 หลายเดือนก่อน

    Nice Tutorial, Pls upload more videos

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Suggest topic if you need. Thank you

    • @Harry99-m8i
      @Harry99-m8i 2 หลายเดือนก่อน

      @@tamilskillhub microservices

    • @Harry99-m8i
      @Harry99-m8i 2 หลายเดือนก่อน

      @@tamilskillhub WebSocket

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Sure

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Sure

  • @akhicj9071
    @akhicj9071 2 หลายเดือนก่อน

    Illegal base64 character: '-' . how to resolve this error.

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Can you provide more details about error?

  • @_Fancy_Bear_
    @_Fancy_Bear_ 2 หลายเดือนก่อน

    React.memo check the child componet value if changes then re render else no need same time usecallback only re render if the value of component is change else re render use case no need to re render whole component that's my understand is it correct

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      React.memo is a higher-order component that optimizes performance by memoizing the result of a component's render. It helps in preventing unnecessary re-renders when the component's props haven't changed

  • @sakthiarunkps7012
    @sakthiarunkps7012 2 หลายเดือนก่อน

    Brother where to contact you Please give your contact details

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      You can mail me at tamilskillhub@gmail.com

  • @akhicj9071
    @akhicj9071 2 หลายเดือนก่อน

    Hi i have faced ROLE not found. How to resolve

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Check you have added as Role_User like this format.

    • @akhicj9071
      @akhicj9071 2 หลายเดือนก่อน

      @@tamilskillhub ROLE_USER, ROLE_MODERATOR, ROLE_ADMIN already I hace used like this format, but Role is not found

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Can you view the video once and check the middleware code?

  • @ganeshm5987
    @ganeshm5987 2 หลายเดือนก่อน

    Thanks for making this video its more understandable . please share the source code for verification

    • @tamilskillhub
      @tamilskillhub 2 หลายเดือนก่อน

      Thank you. Sure

  • @naveenabalamurugan9725
    @naveenabalamurugan9725 3 หลายเดือนก่อน

    Bro python use panni sollunga...

  • @arshadahamed988
    @arshadahamed988 3 หลายเดือนก่อน

    Nodemon is no more need for restarting a sever from 18 version of node

    • @tamilskillhub
      @tamilskillhub 3 หลายเดือนก่อน

      Yeah from version 18. we don't need Nodemon For example: node --watch your-server-file.js This --watch flag will enable the watch mode, and Node.js will restart the application whenever it detects changes to the files in the project. Keep in mind that this feature is still experimental, so it might not have all the capabilities or stability of Nodemon. If you need more advanced features or stability, you may still prefer using Nodemon.

  • @hariharan02anantharaj21
    @hariharan02anantharaj21 3 หลายเดือนก่อน

    🙏❤

  • @pandiarajsekar
    @pandiarajsekar 3 หลายเดือนก่อน

    Can you please solve my problem. As i get response from the post method in the axios. I can destructure the data that comes from backend and use. But the destructuring of data fromt the post method is not working for me. But worked for the tutor. The code were exactly same. But didnt worked for me. Sample code: Function sign(parameter) { Const {data} = await api.signup(parameter) } Another file: Const api = axios.create( { baseurl : "localhost:8000" } ) Export const signup = (parameter) =api.post ('/signup', parameter) There maybe syntax error in my text but actual code is clean. The problem is the destructured {data} is not getting. I send it from backend on same uri with res.json({result:somedata}). But the parameter information passes to backend and stored in database. Response is not working Whats the stupid mistake i have made Help me out

    • @tamilskillhub
      @tamilskillhub 3 หลายเดือนก่อน

      Let's break down the issue step by step and see if we can identify the problem. From your description, it seems like you're doing everything correctly, but the destructured `data` object is not being received as expected. Here's a structured version of your code for clarity: ```javascript // api.js import axios from 'axios'; const api = axios.create({ baseURL: 'localhost:8000', }); export const signup = (parameter) => api.post('/signup', parameter); // signup.js import { signup } from './api'; async function sign(parameter) { try { const { data } = await signup(parameter); console.log(data); // To check what you're receiving } catch (error) { console.error('Error signing up:', error); } } ``` ### Troubleshooting Steps: 1. **Ensure Correct Response Format from Backend:** Make sure your backend is correctly sending the response in the expected format. It should look something like this: ```javascript // Example using Express.js app.post('/signup', (req, res) => { const result = someData; // Replace this with your actual data logic res.json({ result: result }); }); ``` 2. **Check API Endpoint:** Ensure that the endpoint `localhost:8000/signup` is correct and accessible. 3. **Network Issues:** Verify that there are no network issues preventing the response from being received. You can use browser dev tools to inspect the network request and response. 4. **Error Handling:** Ensure that your code handles potential errors gracefully. You might be missing an error message that could give a clue about the problem. ### Debugging Steps: 1. **Inspect the Response:** Modify your code to log the entire response object before destructuring: ```javascript async function sign(parameter) { try { const response = await signup(parameter); console.log(response); // Log the entire response object const { data } = response; console.log(data); // Log the destructured data } catch (error) { console.error('Error signing up:', error); } } ``` 2. **Validate Backend Response:** Double-check the backend to ensure the response is being sent correctly: ```javascript app.post('/signup', (req, res) => { const result = { someData: 'example' }; // Replace this with your actual data logic res.json({ result: result }); }); ``` ### Common Mistakes to Check: - **Typographical Errors:** Ensure that all names and paths are correctly typed. - **Cors Issues:** Ensure CORS is properly configured if your frontend and backend are on different domains. - **Base URL Configuration:** Ensure `baseURL` in your Axios instance is correctly set as `baseURL` and not `baseurl`. ### Example Correction: Here's a more refined version with additional error logging: ```javascript // api.js import axios from 'axios'; const api = axios.create({ baseURL: 'localhost:8000', }); export const signup = (parameter) => api.post('/signup', parameter); // signup.js import { signup } from './api'; async function sign(parameter) { try { const response = await signup(parameter); console.log('Full response:', response); // Log the entire response object const { data } = response; console.log('Destructured data:', data); // Log the destructured data } catch (error) { console.error('Error signing up:', error); } } ``` If these steps don't resolve the issue, please provide more details about the backend implementation and the actual response you're receiving from the API. This will help in diagnosing the problem more accurately. If it resolves your problem. i will be happy. Kudos to Chat-gpt.

  • @arunkumar_2212
    @arunkumar_2212 3 หลายเดือนก่อน

    I'm getting Web server failed to start. Port 9393 was already in use. any solution?. also It didn't add table names in mysql.

    • @tamilskillhub
      @tamilskillhub 3 หลายเดือนก่อน

      Try to change the server using application.properties file. Then start you application

  • @PRAVEENAC-c6h
    @PRAVEENAC-c6h 3 หลายเดือนก่อน

    Now only understood the concept behind routers...A BIG THANKS SIR

  • @aswath6500
    @aswath6500 3 หลายเดือนก่อน

    Un video ella semma useful ah irukku bro. I appreciate you.

  • @prabuterro9929
    @prabuterro9929 3 หลายเดือนก่อน

    Super 🎉❤❤❤

  • @dineshkumarg6601
    @dineshkumarg6601 3 หลายเดือนก่อน

    Bro table not created

    • @tamilskillhub
      @tamilskillhub 3 หลายเดือนก่อน

      Check jdbc url and password configuration. Ensure the connectivity with database established. Check you have used @Entity annotation