Skip to main content
The Client-Server Relationship
Before diving into the world of Java web development, it is very important to understand how the client-server model works. It is necessary for you to understand the client-server model because all Java web applications are built on it. Please know everything about the different layers on the server. This will make your basics stronger and it will be easier to understand advanced Java. Because nowadays we are developing web apps using advanced java (Spring or Spring Boot), the client server will help you understand how the Spring/Spring Boot framework works.
annotations in Spring Boot
annotations define the mapping of incoming HTTP requests to methods within the controller, allowing for seamless handling of client requests.
@bean VS @component


# @Component @Bean
@Contorller VS @RestController annotation
@Controller is used to declare common web controllers which can return HTTP response but @RestController is used to create controllers for REST APIs which can return JSON.
@RequestMapping VS @GetMapping Annotations
@GetMapping is only for HTTP GET request @RequestMapping can be used to process any HTTP methods like POST, PUT, GET and even DELETE.
How To Add Dependency in Spring Boot Project | pom.xml file

Hello everyone, welcome back to techbrushup. In this tutorial, we will learn how to how to add dependency in Spring Boot Project. So guys, let's check out the prerequisite first.


Additional info: ( pom.xml) file is used to add dependencies in maven based Project.

prerequisite:

Should be Already created maven based project if not please follow Maven Based Project

Whitelabel Error Page Problem Solved in Spring boot

Hello everyone, welcome back to techbrushup. In this tutorial, we will learn how to Solve Whitelabel Error Page Problem in Spring Boot application.


Additional info:

prerequisite:

Must have have look in error status code (404 or 500 or some thing else)

Install Extension Pack

Step 1: Open visual studio and install some recommended extension as below

  • Extension Pack for Java Extension Pack of (6)

     spring boot

How to Install & Run Java in Visual Studio Code

This is about - how to set up and run a Java program in visual studio code on Windows.  In this post, I have shown a step-by-step complete guide for setting up Java in VS Code.  

Software install

1. install latest  Java JDK

2. install latest vs code ide

3. intstall popular  extension

   3.1 Extension Pack for Java

   3.2 Code Runner

Create project

Create a folder like javaProject

How to build a Web Application Using Java in Visual Studio Code

In Java there are 3 popular ways to create a dynamic Web Application

lets go into deep for each ways.

1. Servlet :

First Web Application Using Java Servlet In this section, we will see how to create a website using Java Servlets and HTML To create a web application

we need the following tools:

Subscribe to Java