Posts

Basic application to insert data into database

  Spring Boot CRUD Application Overview This is a simple Spring Boot CRUD application that demonstrates how to create, read, update, and delete data in a MySQL database. Database Details The application uses the following MySQL database details: Database Name:  registrationDb Table Name:  registration Table Structure The  registration  table has the following structure: CREATE TABLE registration.sql CREATE TABLE registration ( id INT AUTO_INCREMENT, name VARCHAR(255), email VARCHAR(255), PRIMARY KEY ( id ) ); How it Works The application works as follows: The user sends an HTTP request to the  UserController  class. The  UserController  class calls the  RegistrationService  class to perform the business logic. The  RegistrationService  class calls the  RegistrationDao  class to perform the data access logic. The  RegistrationDao  class interacts with the MySQL database...

Basic Spring Boot Controller Class Annotations

Basic Spring Boot Controller Class Annotations Overview of Dispatcher Servlet When a user hits an API (e.g., a GET call to fetch a user), the Dispatcher Servlet uses Handler Mapping to identify the appropriate controller to handle the request. Key Annotations for Handler Mapping @Controller Indicates that the class is responsible for handling incoming HTTP requests. @RestController Similar to  @Controller , but it combines  @Controller  and  @ResponseBody . Difference Between @Controller and @RestController @Controller  requires  @ResponseBody  on each method, while  @RestController  automatically applies it to all methods. Request Mapping To map APIs to controller methods, we use the  @RequestMapping  annotation. Example: @RequestMapping("/api/v1") public class SampleController { @GetMapping("/fetchUser ") public String getUser Details() { // Logic to fetch user details } } Simplified Mapping Annotations @GetMap...

How to make custom tooltip in angular ?

Image
Custom Tooltip Table What is a tooltip?  A tooltip is a small part of a text that is visible when the user hover mouse on a particular area of text, link, or image. If you want to add a tooltip on code you can use some pre written framework like Angular material, Bootstrap, Talwind Css, and use it on your code. but what if you want to customize?. Today I will tell you how to make a custom tooltip. Preview -  Screenshots :  Image -1 ->  On mouse enter without Css Image -2. On mouse leave without Css Image -3. On mouse enter with css and cursor tracker property Image -4. On mouse leave with css and cursor tracker property Code -  html ->                               < table >     < tr >         < th > Sr No. </ th >         < th > Name </ th >         < th >...

Automatic irrigation system.

Image
Hello guys,   I am going to tell you about my project that name is 'AUTOMATIC IRRIGATION  SYSTEM' this is Arduino Uno based proteous simulation project. The model is designed  on proteous 8 professional version 8.0. And also used Arduino IDE software to perform coding.  Aim of the project The project is designed to help farmers to give water of the crops automatically.  Component used  Arduino UNO LCD 20*4 Ultrasonic sensor GSM module Virtual terminal Soil moisture sensor DC motor Purpose  of component used Arduino Uno used to decode the coding uploaded by the user to perform the working this is the brain of project. LCD display is used to show the name of project designer and shoe the status of projects. Ultrasonic sensor is used to measure the water level. GSM module is used to send the notification and status of the project via sms to user mobile no. Soil moisture sensor is used to measure the moisture content in field. Dc motor is use...

Bluetooth Control RC car

Image
Hey guys, I want to show you my first Proteous simulation project that name is " Bluetooth Control RC car" . This project is base on Arduino and simulation is done by using " P roteous 8 professional software" . The full detail of this project and all is written below.  And also i will provide the ( project report, ppt, and source code of Arduino ide ) through a link who is upload on my YouTube channel description and you can take it and make changes on them to make your own project.  Lets starts, Introduction: Bluetooth control car is a robot which is built using Atmega328 Microcontroller in which serial communication is done via Bluetooth and programmed is done by using Arduino Ide. Software need to make this project: Must installed Proteous software any version. Must installed Arduino Ide any version. After install thease two software download the all component library from google search and download after download paste proteous library folder after paste ru...